From a3c79eca49a50d90ef2d79f1464709d742fd3073 Mon Sep 17 00:00:00 2001 From: Harald Radi Date: Sat, 15 Jun 2002 16:04:59 +0000 Subject: [PATCH] workaround for a win32 memleak # this definitely has to be revisited ! # maybe we should use winsock2 and overlapped IO --- ext/sockets/php_sockets_win.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/sockets/php_sockets_win.c b/ext/sockets/php_sockets_win.c index 374d03b35b..54b52bd56c 100644 --- a/ext/sockets/php_sockets_win.c +++ b/ext/sockets/php_sockets_win.c @@ -44,6 +44,7 @@ ssize_t readv(SOCKET sock, const struct iovec *iov, int iovcnt) { } retval = recv(sock, buffer, bytes, 0); + SleepEx(1, TRUE); if(retval < 0) { efree(buffer); return retval; -- 2.40.0