develooper Front page | perl.perl5.porters | Postings from September 2013

[perl #118059] race condition+fail in dist\IO\t\cachepropagate-tcp.t

Thread Previous | Thread Next
From:
bulk88 via RT
Date:
September 26, 2013 09:22
Subject:
[perl #118059] race condition+fail in dist\IO\t\cachepropagate-tcp.t
Message ID:
rt-3.6.HEAD-31239-1380187336-1341.118059-15-0@perl.org
On Wed Sep 25 23:42:55 2013, bulk88 wrote:
> Adding a trimmed down test version of cacheproagate-tcp.t to isolate
> problem. Another bug investigating is, in badrun, the $^E is 6, which is
> ERROR_INVALID_HANDLE, the accept returned 10038/0x2736/WSAENOTSOCK to
> perl. There is a line that must be commented out to be a badrun,
> uncomment (and the print in the child thread adds delay) it will be a
> good run. 
> 

Made an ithreads version which freezes the server thread that does the
accept in the accept, for the whole life time of the child thread I
think, (didnt verify with c debugger). It does NOT fail on it. And the
accept returns a working handle.

Is this a handle leak in Perl PLUS a race in winsock?

The script can be messed around with.
-- 
bulk88 ~ bulk88 at hotmail.com

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=118059

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About