Skip Menu |

This queue is for tickets about the IO CPAN distribution.

Report information
The Basics
Id: 43573
Status: resolved
Priority: 0/
Queue: IO

Owner: Nobody in particular
Requestors: [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: non-blocking mode does not work on windows.
Date: Tue, 24 Feb 2009 20:39:27 +0900
To: bug-IO [...]
From: Yasuhiro MATSUMOTO < [...]>
Download (untitled) / with headers
text/plain 549b
Hi. Thanks for you great work. I tried to make socket server using IO::Socket::INET. But non-blocking mode does not work on windows. Below is a patch for fixing this problem. Please check and include. --- IO.xs.orig 2006-03-26 11:27:13.000000000 +0900 +++ IO.xs 2009-02-24 20:16:34.921875000 +0900 @@ -121,7 +121,12 @@ } return RETVAL; #else +# ifdef WIN32 + unsigned long flags = block; + return ioctl(PerlIO_fileno(f), FIONBIO, &flags); +# else return -1; +# endif #endif } Best Regards, Thanks. -- - Yasuhiro Matsumoto
Download (untitled) / with headers
text/plain 373b
On 木曜日 2月 26 03:11:24 2009, RGARCIA wrote: Show quoted text
> Patch applied to bleadperl as : > > 58da063417a8d2 Oops. sorry, i checked it using mingw32 gcc only. 02/msg00656.html i attached a 0001-removed-warning.patch to remove the warning.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to