Hi,

I'm writing a PerlProcessConnectionHandler. It starts:

sub handler {
   my $c = shift;
   my $sock = $c->client_socket;

$sock is an instance of APR::Socket. The problem is that the connection is using SSL and I need to be able to read/write the unencrypted socket stream. If $sock was an instance of IO::Socket I could just do a IO::Socket::SSL->start_SSL( $sock ) to handle SSL negotiation and to get access to the unencrypted stream, but how do I do it with APR::Socket?

Also, and I'm guessing this is a big no. Is it possible to have a PerlProcessConnectionHandler that reads the first few bytes from the socket then decides that it doesn't want to continue so puts them back on the stack and then hands off to the next phase for "normal" processing?

Regards,
Mike

Reply via email to