Re: cvs: php4 /ext/sockets php_sockets_win.c
| From: | Jani Taskinen | Date: | Mon, 02 Dec 2002 06:36:06 +0000 |
| Subject: | Re: cvs: php4 /ext/sockets php_sockets_win.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-16834@lists.php.net to get a copy of this message | ||
MFH?
--Jani
On Mon, 2 Dec 2002, Jason Greene wrote:
>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
>
>
>
>
--
<- For Sale! ->