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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user