1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 15:12:39 +02:00

(php_sock_fgets) Respect timeout event.

This commit is contained in:
Andrei Zmievski
2000-02-02 18:00:44 +00:00
parent a6748c555e
commit 0c535aa355

View File

@@ -648,7 +648,7 @@ char *php_sock_fgets(char *buf, size_t maxlen, int socket)
if(!p) {
if(sock->is_blocked) {
while(!p && !sock->eof && TOREAD(sock) < maxlen) {
while(!p && !sock->eof && !sock->timeout_event && TOREAD(sock) < maxlen) {
php_sockread_internal(sock);
SEARCHCR();
}