in reply to Re: threads->create() blocks on Windows
in thread threads->create() blocks on Windows
But, the underlying system handle for the socket is locked (by the OS) because the socket is in a blocking read; thus the attempt to clone the handle is blocked until the read completes; which it never will.
Well, this explanation seemed reasonable to me and it seems to indicate that the problem is in Windows itself and that Perl just happens to work in a way that collides with some Windows behavior here if I write my script in a certain way.
I doubt this now! I had tested this script with Strawberry Perl and Active State Perl and both show the same behavior. But now I tested this with Cygwin's Perl package and it just works. So is this actually a bug in Strawberry and Active State Perl, or is Cygwin just applying some magic here to make this work?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: threads->create() blocks on Windows
by BrowserUk (Patriarch) on Mar 24, 2014 at 19:12 UTC | |
by photron (Novice) on Mar 25, 2014 at 10:37 UTC |