summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Radi <phanto@php.net>2002-06-15 16:04:59 +0000
committerHarald Radi <phanto@php.net>2002-06-15 16:04:59 +0000
commita3c79eca49a50d90ef2d79f1464709d742fd3073 (patch)
treef44d6ba1411f4aaa14e9db4dae11907fee145bbe
parentf7bdde218eb0b2a187e88944bc3c43ecef7a5041 (diff)
downloadphp-git-a3c79eca49a50d90ef2d79f1464709d742fd3073.tar.gz
workaround for a win32 memleak
# this definitely has to be revisited ! # maybe we should use winsock2 and overlapped IO
-rw-r--r--ext/sockets/php_sockets_win.c1
1 files changed, 1 insertions, 0 deletions
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;