Re: Patch to add APR::Socket->poll()

2004-08-30 Thread Stas Bekman
Another thing is the test. First of all it's quite possible that on a slow machine the first subtest will fail, so it should probably wait much longer on the first call. Second, I'd like to see is replacing sleep 2 with something faster. The test suite is already huge and adding extra sleeps ad

Re: Patch to add APR::Socket->poll()

2004-08-30 Thread Stas Bekman
Ken Simpson wrote: Hi Everyone, This patch adds a poll() method to APR::Socket that allows you to poll a nonblocking APR socket -- similar to the select() call in Unix-land. Synopsis: use APR::Socket(); use Apache::Connection (); use APR::Const -compile => qw(POLLIN); my $timeout = 10_000_000;

Patch to add APR::Socket->poll()

2004-08-30 Thread Ken Simpson
Hi Everyone, This patch adds a poll() method to APR::Socket that allows you to poll a nonblocking APR socket -- similar to the select() call in Unix-land. Synopsis: use APR::Socket(); use Apache::Connection (); use APR::Const -compile => qw(POLLIN); my $timeout = 10_000_000; # microseconds