diff options
author | Jason Greene <jason@php.net> | 2002-12-03 05:46:53 +0000 |
---|---|---|
committer | Jason Greene <jason@php.net> | 2002-12-03 05:46:53 +0000 |
commit | e0018cc874048b5c6e3935efa1f2db374a7c4e18 (patch) | |
tree | 55b5d54deb665e83037063c684230e9e7be4c1b6 | |
parent | 314c4c68741f2891947ccf30a133a8c602d76e1c (diff) | |
download | php-git-e0018cc874048b5c6e3935efa1f2db374a7c4e18.tar.gz |
MFH
-rw-r--r-- | ext/sockets/php_sockets_win.c | 4 |
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 |