diff options
author | Eric Wong <e@80x24.org> | 2019-06-27 21:21:04 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-29 19:59:00 +0000 |
commit | 63eeb22554eb844cee274f71d3541446c28b328f (patch) | |
tree | d6598ef9ce0323575b3c13f58183534a85c840ec /lib/PublicInbox/HTTP.pm | |
parent | 6306663a3b4167edfd5b1fd640233da96fe9e32f (diff) | |
download | public-inbox-63eeb22554eb844cee274f71d3541446c28b328f.tar.gz |
Don't use epoll or kqueue to watch for anything unless we hit EAGAIN, since we don't know if a socket is SSL or not.
Diffstat (limited to 'lib/PublicInbox/HTTP.pm')
-rw-r--r-- | lib/PublicInbox/HTTP.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm index 1153ef98..856b8959 100644 --- a/lib/PublicInbox/HTTP.pm +++ b/lib/PublicInbox/HTTP.pm @@ -95,7 +95,7 @@ sub rbuf_process { } if ($r < 0) { # incomplete $self->rbuf_idle($rbuf); - return $self->watch_in1; + return $self->requeue; } $$rbuf = substr($$rbuf, $r); my $len = input_prepare($self, \%env); @@ -241,7 +241,7 @@ sub next_request ($) { push @$pipelineq, $self; $pipet ||= PublicInbox::EvCleanup::asap(*process_pipelineq); } else { # wait for next request - $self->watch_in1; + $self->requeue; } } |