From: Harald Radi Date: Sat, 15 Jun 2002 16:04:59 +0000 (+0000) Subject: workaround for a win32 memleak X-Git-Tag: php5_5_0~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3c79eca49a50d90ef2d79f1464709d742fd3073;p=php workaround for a win32 memleak # this definitely has to be revisited ! # maybe we should use winsock2 and overlapped IO --- 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;