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.
0;
}
-sub watch_in1 ($) { watch($_[0], EPOLLIN | EPOLLONESHOT) }
-
# return true if complete, false if incomplete (or failure)
sub accept_tls_step ($) {
my ($self) = @_;
}
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);
push @$pipelineq, $self;
$pipet ||= PublicInbox::EvCleanup::asap(*process_pipelineq);
} else { # wait for next request
- $self->watch_in1;
+ $self->requeue;
}
}