Re: Bug #1451: Problems with blocking socket operations
| From: | Sascha Schumann | Date: | Tue, 25 May 1999 19:47:46 +0000 |
| Subject: | Re: Bug #1451: Problems with blocking socket operations | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-5994@lists.php.net to get a copy of this message | ||
On Tue, May 25, 1999 at 06:28:09PM -0000, chr@tv2i.dk wrote:
> From: chr@tv2i.dk
> Operating system: Red Hat Linux 6.0
> PHP version: 3.0.8
> PHP Bug Type: Misbehaving function
> Bug description: Problems with blocking socket operations
>
> The following code works on PHP3 versions prior to 3.0.7:
I don't know what to say to this. A user complaining about blocking behaviour
when he uses blocking socket operations.
Really, fgets() cannot work in a blocking environment without using the
single-character recv again.
We cannot use any prefetch-algorithm in the context of blocking operations,
because we cannot know how much data will be available which we can read
without blocking for "some time" (where "some time" is defined by the user and
the execution time limit).
Any opinions?
--
Regards,
Sascha Schumann
Consultant
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net