On 20 Jun 2005, at 14:07, Peter Eisch wrote:

Is there a way to "share" the raw socket with APR::Socket for just a short
time?  At the beginning of the tcp session it would be nice to sit on a
select() for a bit and ensure the client doesn't try forcing down a session. They're not supposed to say anything until we present them with a banner, but there's no timestamp or way to ensure that the client didn't speak until
spoken to.

No need - there's a poll interface:

  my $rc = $socket->poll($c->pool, $timeout, APR::Const::POLLIN);

See http://svn.apache.org/repos/asf/perl/modperl/trunk/t/protocol/ TestProtocol/echo_nonblock.pm for details. We just need to port check_early_talker to that framework.

Matt.

Reply via email to