Re: stream_set_timeout() mystery

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Richard Lynch wrote:



Al wrote:

Hi Richard, thanks for the help.

Note I have the timeout set for 1 microsec, have tried several values, eg,
100ms, 1 sec, etc.  I even used a 4mb file and it did nothing.

It seems as if stream_set_timeout() does nothing.

Note in socket_get_status(), [timed_out] => is always false.


    v
timed_out
    ^
   / \
  /   \
Lost data because your time-out expired

Possibly you have such a good connection, it never times out.


Try connection to something that's not there -- Like: $URL_full = 'http://example.com';


hey Richard, example.com is alive :-)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux