Windows sockets (select missing events?) - Mailing list pgsql-hackers

From Ranier Vilela
Subject Windows sockets (select missing events?)
Date
Msg-id CAEudQAqjqkXXsjdKpmi=ry+JCfaKrFJO9NF1bP5CrtvZwh0uHg@mail.gmail.com
Whole thread Raw
Responses Re: Windows sockets (select missing events?)
List pgsql-hackers
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
Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Statistics Import and Export
Next
From: Alexander Lakhin
Date:
Subject: Re: broken master regress tests