Skip Menu |
 

This queue is for tickets about the IO-Socket-SSL CPAN distribution.

Report information
The Basics
Id: 72305
Status: resolved
Priority: 0/
Queue: IO-Socket-SSL

People
Owner: Nobody in particular
Requestors: HMBRAND [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.43
Fixed in: (no value)



Subject: t/nonblock.t hangs on AIX-5.3
Download (untitled) / with headers
text/plain 1.1k
.cpan/build/IO-Socket-SSL-1.49-HQkfoG 142 > perl -Iblib/{lib,arch} t/ nonblock.t 1..27 ok # [server] Server Initialization ok # [client] client tcp connect # wrote 9 bytes ok # [client] write plain text ok # [server] tcp accept ok # [server] received plain text ok # [client] upgrade client to IO::Socket::SSL ok # [server] upgrade to_client to IO::Socket::SSL # SSL wants a read first # SSL wants a read first ok # [server] ssl accept handshake done ok # [client] connected ok # [client] nonblocking connect with 2 attempts # sndbuf=8192 ok # [server] received client message # $!=Resource temporarily unavailable $SSL_ERROR=SSL wants a write first send=2210 # wait for write # $!=Resource temporarily unavailable $SSL_ERROR=SSL wants a read first <--- here it hangs ---> .cpan/build/IO-Socket-SSL-1.49-HQkfoG 143 > perl - MV=Net::SSLeay,Socket,IO::Select,Errno Net::SSLeay /pro/lib/perl5/site_perl/5.10.1/aix-64all/Net/SSLeay.pm: 1.42 Socket /pro/lib/perl5/5.10.1/aix-64all/Socket.pm: 1.82 IO::Select /pro/lib/perl5/5.10.1/aix-64all/IO/Select.pm: 1.17 Errno /pro/lib/perl5/5.10.1/aix-64all/Errno.pm: 1.11
Download (untitled) / with headers
text/plain 1.4k
FWIW this test still passes for IO-Socket-SSL versions 1.39 and 1.40 under the exact same environment (OpenSSL 0.9.8r 8 Feb 2011) 1.41 and 1.42 fail with # SSL wants a read first ok # [server] tcp accept ok # [server] received plain text ok # [server] upgrade to_client to IO::Socket::SSL # failed to accept: SSL accept attempt failed with unknown errorerror:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number not ok # [server] ssl accept handshake done # T9 ok # [server] received client message # $!=Resource temporarily unavailable $SSL_ERROR=SSL accept attempt failed with unknown errorerror:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number and then continues to test (with more errors) 1.43 .. 1.48 fail like 1.49 perl -Iblib/{lib,arch} t/nonblock.t 1..27 ok # [server] Server Initialization ok # [client] client tcp connect ok # [client] write plain text ok # [client] upgrade client to IO::Socket::SSL # SSL wants a read first ok # [server] tcp accept ok # [server] received plain text ok # [server] upgrade to_client to IO::Socket::SSL # SSL wants a read first ok # [server] ssl accept handshake done ok # [client] connected ok # [client] nonblocking connect with 2 attempts # sndbuf=8192 ok # [server] received client message # $!=Resource temporarily unavailable $SSL_ERROR=SSL wants a write first send=2210 # wait for write # $!=Resource temporarily unavailable $SSL_ERROR=SSL wants a read first <-- hang -->
Download (untitled) / with headers
text/plain 112b
I really would like to fix these bugs on AIX, but have no access to such a system. Could anybody provide access?
Download (untitled) / with headers
text/plain 608b
Am Do 10. Nov 2011, 03:58:06, SULLR schrieb: Show quoted text
> I really would like to fix these bugs on AIX, but have no access to such > a system. Could anybody provide access?
I can reproduce the bug and it is releated to the setting of SO_SNDBUF, which was added to make the test more stable on MacOSX :( Looks like that setting SO_SNDBUF on AIX can make the connection really really slow, at least on localhost. I think I saw a similar problem once on older OpenBSD systems. For now it should be fixed by not setting the SO_SNDBUF on AIX. Fixed in 1.50. Thanks to Rainer Tammer for providing access to an AIX system.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.