Пнд Май 14 20:50:01 2012, RCAPUTO писал:
Show quoted text> I added a callback to the Client_SSLify() call that should trigger an
> error response, but it isn't being called. I've commented it
> out for now. I'm not sure how to get it working. If you (or someone
> you know) is familiar with non-blocking Net::SSLeay or
> POE::Component::SSLify, please have them contact me.
I don't know how could catch error in SSLify.
So I've patched sub _poco_weeble_io_error
545a546,566
Show quoted text> if ($request->scheme eq 'https' && $request->wheel) {
> my $socket = $request->wheel->get_input_handle;
> if ($socket) {
> my $error =
Net::SSLeay::get_error(POE::Component::SSLify::SSLify_GetSSL($socket),
POE::Component::SSLify::SSLify_GetStatus($socket));
Show quoted text> # returns: result code, which is one of the following values:
> # 0 - SSL_ERROR_NONE
> # 1 - SSL_ERROR_SSL
> # 2 - SSL_ERROR_WANT_READ
> # 3 - SSL_ERROR_WANT_WRITE
> # 4 - SSL_ERROR_WANT_X509_LOOKUP
> # 5 - SSL_ERROR_SYSCALL
> # 6 - SSL_ERROR_ZERO_RETURN
> # 7 - SSL_ERROR_WANT_CONNECT
> # 8 - SSL_ERROR_WANT_ACCEPT
> if ($error) {
> $request->connect_error('sslify', $error, 'ssl error');
> return;
> }
> }
> }
>
I don't sure that it's a true way, but for my purpose this is enough.