Add emulation of non-blocking sockets to the win32 socket/signal layer,

Magnus Hagander <magnus@hagander.net>

Commit: 215cbc90f8db3fc8a70af5572b156f49216c2f70
Author: Magnus Hagander <magnus@hagander.net>
Date: 2010-02-16T19:26:02Z
Releases: 9.0.0
Add emulation of non-blocking sockets to the win32 socket/signal layer,
and use this in pq_getbyte_if_available.

It's only a limited implementation which swithes the whole emulation layer
no non-blocking mode, but that's enough as long as non-blocking is only
used during a short period of time, and only one socket is accessed during
this time.

Files

PathChange+/−
src/backend/libpq/pqcomm.c modified +13 −1
src/backend/port/win32/socket.c modified +24 −1
src/include/port/win32.h modified +3 −1