non-blocking libpq under win32 - Mailing list pgsql-patches

From Andreas Pflug
Subject non-blocking libpq under win32
Date
Msg-id 3F492BFC.4080809@web.de
Whole thread Raw
List pgsql-patches
The attached patch reenables non-blocking operation under win32.

The global variable was left uninitialized, so the compiler would
silently make it 0. This resulted in connectMakeNonblocking() setting
nonblocking to zero, i.e. blocking.

Regards,
Andreas
RCS file: /projects/cvsroot/pgsql-server/src/interfaces/libpq/fe-connect.c,v
retrieving revision 1.259
diff -u -r1.259 fe-connect.c
--- fe-connect.c    4 Aug 2003 02:40:16 -0000    1.259
+++ fe-connect.c    24 Aug 2003 21:10:38 -0000
@@ -48,7 +48,7 @@

 /* For FNCTL_NONBLOCK */
 #if defined(WIN32) || defined(__BEOS__)
-long        ioctlsocket_ret;
+long        ioctlsocket_ret=1;
 #endif

pgsql-patches by date:

Previous
From: Sumaira Maqsood Ali
Date:
Subject: LOCK.tag(figuring out granularity of lock)
Next
From: Peter Eisentraut
Date:
Subject: Re: Russian NLS update: pgscripts