Skip Menu |

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

Report information
The Basics
Id: 122499
Status: open
Priority: 0/
Queue: IO-Socket-SSL

People
Owner: Nobody in particular
Requestors: sinan [...] unur.com
Cc:
AdminCc:

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



Subject: Failures in t/nonblock.t w/ perl 5.26.0 on Windows Subsystem for Linux
Date: Sat, 15 Jul 2017 15:50:54 -0400
To: bug-IO-Socket-SSL [...] rt.cpan.org
From: "A. Sinan Unur" <sinan [...] unur.com>
Hello: I am not sure what the cause of these failures is. I ran the test script multiple times to see if the problem was transient. This more an FYI at this point. ~/.cpanm/work/1500147486.15226/IO-Socket-SSL-2.049$ prove -vb t/nonblock.t t/nonblock.t .. 1..27 ok # [server] Server Initialization ok # [client] client tcp connect # wrote 9 bytes ok # [client] write plain text ok # [client] upgrade client to IO::Socket::SSL ok # [server] tcp accept ok # [server] received plain text ok # [server] upgrade to_client to IO::Socket::SSL # SSL wants a read first ok # [client] connected ok # [client] nonblocking connect with 1 attempts # sndbuf=16384 ok # [server] ssl accept handshake done ok # [server] received client message # $!=Resource temporarily unavailable $SSL_ERROR=SSL wants a write first send=271260 # wait for write # read 30000 (1 r/w attempts) not ok # [server] tcp accept # failed to tcp accept: Resource temporarily unavailable # fail can_write not ok # [client] syswrite ok # [client] multiple write attempts ok # [client] 30000 bytes send ok # [client] client tcp connect # wrote 9 bytes ok # [client] write plain text ok # [client] upgrade client to IO::Socket::SSL # SSL wants a read first # failed to connect: not ok # [client] connected # sndbuf=16384 ok # [client] syswrite not ok # [client] multiple write attempts ok # [client] 30000 bytes send Failed 9/27 subtests Test Summary Report ------------------- t/nonblock.t (Wstat: 0 Tests: 22 Failed: 4) Failed tests: 12-13, 19, 21 Parse errors: Bad plan. You planned 27 tests but ran 22. Files=1, Tests=22, 82 wallclock secs ( 0.05 usr 0.11 sys + 0.90 cusr 7.28 csys = 8.34 CPU) Result: FAIL
Am Sa 15. Jul 2017, 15:51:03, sinan@unur.com schrieb: Show quoted text
> Hello: > > I am not sure what the cause of these failures is. I ran the test > script multiple times to see if the problem was transient. This more > an FYI at this point.
Thanks for the bugreport. I get similar problems with perl 5.22 on the Linux subsystem. Your output and mine output suggest, that nonblocking IO is not yet properly implemented, maybe only in the context of specific relations between the client and server (i.e. local machine, client is child of server...). Since I think that the Linux subsystem is not yet announced as ready for production I will not try to fix the problem at the moment but just hope that it goes away by itself with future changes to the Windows subsystem. I will keep the bug open though.
Windows 10, Strawberry Perl 5.26.1, CPAN upgrade from 2.066 to 2.067. First time through, hung on t/verify_fingerprint.t. Tried to upgrade again, this time answered "no" to "run external tests". This time two tests failed on t/nonblock.t (13 and 26), but verify_fingerprint.t passed.
Tried upgrade (via cpan) 2.066 to 2.068. With external tests enabled, passed verify_fingerprint.t, but still fails nonblock.t (2/27 tests). Windows 10, Strawberry Perl 5.26.1.
On Tue Mar 31 09:37:51 2020, PMPERRY wrote: Show quoted text
> Tried upgrade (via cpan) 2.066 to 2.068. With external tests enabled, > passed verify_fingerprint.t, but still fails nonblock.t (2/27 tests). > Windows 10, Strawberry Perl 5.26.1.
Well, this gets stranger and stranger. Tried same upgrade as before. nonblock.t still fails, but verify_fingerprint.t is hanging again at 1/13 (running external tests).