]> granicus.if.org Git - php/commitdiff
Revert patch that should have been reverted a long time ago.
authorJason Greene <jason@php.net>
Mon, 2 Dec 2002 05:45:13 +0000 (05:45 +0000)
committerJason Greene <jason@php.net>
Mon, 2 Dec 2002 05:45:13 +0000 (05:45 +0000)
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

ext/sockets/php_sockets_win.c

index 54b52bd56c8617d53616add6e33aee013206c19b..b84b6b76dad154ca1b6b35faffea964548650049 100644 (file)
@@ -44,7 +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;
@@ -175,4 +175,4 @@ int fcntl(int fd, int cmd, ...) {
        va_end(va);
        return retval;
 }
-#endif
\ No newline at end of file
+#endif