summaryrefslogtreecommitdiff
path: root/ext/sockets/php_sockets_win.c
diff options
context:
space:
mode:
authorJason Greene <jason@php.net>2002-12-02 05:45:13 +0000
committerJason Greene <jason@php.net>2002-12-02 05:45:13 +0000
commit5e1741fd486c44e3e58ff0dc416dab10931db2ac (patch)
tree5ecb11caed384f4a8e6bb9de6d316f7082efebac /ext/sockets/php_sockets_win.c
parent76e09401ab1249baa47863e3481e979864baecd2 (diff)
downloadphp-git-5e1741fd486c44e3e58ff0dc416dab10931db2ac.tar.gz
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
Diffstat (limited to 'ext/sockets/php_sockets_win.c')
-rw-r--r--ext/sockets/php_sockets_win.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sockets/php_sockets_win.c b/ext/sockets/php_sockets_win.c
index 54b52bd56c..b84b6b76da 100644
--- a/ext/sockets/php_sockets_win.c
+++ b/ext/sockets/php_sockets_win.c
@@ -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