Attached patch implements that idea.
May be that way (untested):if ( isUDP && (what & FP_WRITE) ) for(;;) { r = WaitForMultipleObjects(100 ms); if ( r == WAIT_TIMEOUT ) { r == WSASend( sero packet ); /* see comments in pgwin32_select() */ [ analyze result of WSASend: * if success then return 1 * WSAEWOULDBLOCK - continue loop * SOCKET_ERROR - return 0 ] } else break; }
-- Teodor Sigaev E-mail: [EMAIL PROTECTED] WWW: http://www.sigaev.ru/
win32_1.patch.gz
Description: Unix tar archive
---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq