mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
a44838e8a3
using the default socket timeout of 60 seconds before returning the socket to the calling script. The reason they were using that value is that the same code is used for feof(), so the fix is allowing the caller to indicate the timeout value for liveness checks. A possible remaining issue now is that 0 second timeout[1] for pfsockopen is possibly too short; it's impossible to specify a sane value for all possible uses, so maybe we need a stream context or an .ini option to control this, or maybe use the timeout value that was passed to pfsockopen(). # [1] by timeout, I mean the time that PHP will wait for data on a # persistent socket before deciding if a new connection should be made; # NOT the timeout while waiting for a new connection to be established. |
||
---|---|---|
.. | ||
cast.c | ||
filter.c | ||
memory.c | ||
mmap.c | ||
php_stream_context.h | ||
php_stream_filter_api.h | ||
php_stream_mmap.h | ||
php_stream_plain_wrapper.h | ||
php_stream_transport.h | ||
php_stream_userspace.h | ||
php_streams_int.h | ||
plain_wrapper.c | ||
streams.c | ||
transports.c | ||
userspace.c | ||
xp_socket.c |