Skip Menu |
 

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

Report information
The Basics
Id: 122499
Status: stalled
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>
Download (untitled) / with headers
text/plain 1.6k
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
Download (untitled) / with headers
text/plain 792b
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.


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.