RE: [PHP-WIN] RE:escape loop on timeout
| From: | Svensson, B.A.T. | Date: | Wed, 23 May 2001 15:30:15 +0000 |
| Subject: | RE: [PHP-WIN] RE:escape loop on timeout | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-7877@lists.php.net to get a copy of this message | ||
>Have you got any idea what to do when you want to measure the
>time but not in the loop?
>
>Case: you want to limit the time of reading from an open
>socket (fread), the other side doesn't answer, you wait and wait...
In C/C++ one can set a network timeout counter before one does
a network call (at least under unix:). If there is no answer
within the count down time a function assigned to the time out
signal will be invoked.
Maybe there are support for this in php, or if not, maybe its
an idea to implement something like that?