Subject: Windows sockets (select missing events?)

From: Ranier Vilela <[email-masked]>
Date: Thu, 28 Dec 2023 14:45:40 -0300

Hi,

The type of field fd_count is defined in winsock.h:
typedef unsigned int    u_int;

So in the struct fd_set,
the field fd_count is unsigned int.

The pgwin32_select  function has loops that use *int* as indices.

Question: in Windows, the socket select function isn't missing some events?

If not, It would be a good prevention practice, using the correct type,
right?

Patch attached.

best regards,
Ranier Vilela