]> granicus.if.org Git - php/commitdiff
workaround for a win32 memleak
authorHarald Radi <phanto@php.net>
Sat, 15 Jun 2002 16:04:59 +0000 (16:04 +0000)
committerHarald Radi <phanto@php.net>
Sat, 15 Jun 2002 16:04:59 +0000 (16:04 +0000)
# this definitely has to be revisited !
# maybe we should use winsock2 and overlapped IO

ext/sockets/php_sockets_win.c

index 374d03b35bc0927bc3fbaae46b141efd242dfd55..54b52bd56c8617d53616add6e33aee013206c19b 100644 (file)
@@ -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;