Ray Bucannon has asked for the wisdom of the Perl Monks concerning the following question:
Dear Order of the Monks,
I've been tasked with helping with some Perl a user is having issues with (me being a Perl beginner): -
We're using Activestate v5.8.8 on Windows XP - The issue is of opening a socket connection with non-blocking IO.
The code just hangs in Windows (like its still blocking) but when I tested on a Linux box it seemed to work fine.
What I need to know is if it works in Windows or if not is there another way to work with non-blocking IO and sockets using Perl.
Thanks
Ray
See Non-blocking socket read on Windows for a discussion and a bundle of related nodes. I believe that the Danga::Socket framework also knows how to do nonblocking sockets nowadays but I can't find the relevant change. I think the solution (if there is any) to enable nonblocking sockets on Win32 is some ioctl call that's different from the unixish ioctl() call.