mirror of
https://github.com/postgres/postgres.git
synced 2025-07-17 06:41:09 +03:00
On win32, retry reading when WSARecv returns WSAEWOULDBLOCK. There seem
to be cases when at least Windows 2000 can do this even though select just indicated that the socket is readable. Per report and analysis from Cyril VELTER.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/port/win32/socket.c,v 1.10.2.2 2006/10/13 14:00:17 teodor Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/port/win32/socket.c,v 1.10.2.3 2007/06/04 13:39:34 mha Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -289,6 +289,7 @@ pgwin32_recv(SOCKET s, char *buf, int len, int f)
|
||||
int r;
|
||||
DWORD b;
|
||||
DWORD flags = f;
|
||||
int n;
|
||||
|
||||
if (pgwin32_poll_signals())
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user