cvs: php4 /ext/sockets php_sockets_win.c

From: Date: Mon, 02 Dec 2002 05:45:13 +0000
Subject: cvs: php4 /ext/sockets php_sockets_win.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-16831@lists.php.net to get a copy of this message
jason Mon Dec 2 00:45:13 2002 EDT Modified files: /php4/ext/sockets php_sockets_win.c Log: Revert patch that should have been reverted a long time ago. There was a memory leak in the error handling system on win32, that this patch circumvented (by preventing the errors (EAGAIN mesages) from being generated). # I must have forgotten to remove this when I fixed the leak Index: php4/ext/sockets/php_sockets_win.c diff -u php4/ext/sockets/php_sockets_win.c:1.5 php4/ext/sockets/php_sockets_win.c:1.6 --- php4/ext/sockets/php_sockets_win.c:1.5 Sat Jun 15 12:04:59 2002 +++ php4/ext/sockets/php_sockets_win.c Mon Dec 2 00:45:13 2002 @@ -44,7 +44,7 @@ } retval = recv(sock, buffer, bytes, 0); - SleepEx(1, TRUE); + if(retval < 0) { efree(buffer); return retval; @@ -175,4 +175,4 @@ va_end(va); return retval; } -#endif \ No newline at end of file +#endif

« previous php.cvs (#16831) next »