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
bulk88 via RT
September 26, 2013 09:22
[perl #118059] race condition+fail in dist\IO\t\cachepropagate-tcp.t
Message ID:
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

via perlbug:  queue: perl5 status: open

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About