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
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to