Re: Bug #13566: BUG FIX? for ext/sockets
| From: | J Smith | Date: | Fri, 05 Oct 2001 19:04:22 +0000 |
| Subject: | Re: Bug #13566: BUG FIX? for ext/sockets | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-67370@lists.php.net to get a copy of this message | ||
Even better. How about making the usec parameter optional in
socket_select(), and if the sec parameter is NULL, pass NULL to select()
instead of tv? That would make the syntax of select() with a NULL timeout
pretty much the same as socket_select() with a NULL timeout, minus the
first maxfd parameter in select() of course.
J
Markus Fischer wrote:
> On Fri, Oct 05, 2001 at 06:38:41PM -0000, jsmith@tutorbuddy.com wrote :
>> Unfortunately, at the same time, this creates an
>> incompatibility between socket_select() and system
>> select(), since socket_select() will no longer produce the
>> same results as calling select() with tv_sec = -1 and
>> tv_usec = -1, but I don't think that's much of a problem.
>
> I think it should be perfectly valid to pass NULL and detect
> this in socket_select() so sec/user still can be -1. Lets see
> what others think.
>
> - Markus
>