Conversation
Notices
-
http://php.net/manual/en/function.stream-select.php :
"If tv_sec is NULL stream_select() can block indefinitely, returning only when an event on one of the watched streams occurs (or if a signal interrupts the system call)."
lib/iomaster.php: $ready = stream_select($read, $write, $except, $timeout, 0);
-
I can see the problem in line 186 in extlib/HTTP/Request2/SocketWrapper.php, but that timeout is just for socket timeout. There is no socket timeout, the socket is considered alive if it sends a char every x seconds.
We cannot - only- rely on stream_set_timeout. That is a different ball game for handling bad connections.
We need timeouts for the time until there is a reply we can consider valid and the time between now and the last valid reply. Btw a counter for non valid relies seems useful for me, too.