develooper Front page | perl.perl5.porters | Postings from February 2003

Re: [PATCH IO/Socket/INET.pm] Blocking option ignored

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
February 18, 2003 14:41
Subject:
Re: [PATCH IO/Socket/INET.pm] Blocking option ignored
Message ID:
20030218220826.GE278@Bagpuss.unfortu.net
On Tue, Feb 18, 2003 at 09:45:45PM +0000, Dave Mitchell wrote:
> Currently IO::Socket::INET->new(Blocking => 0, ....)
> silently fails to set non-blocking, because it attempts to do the fcntl
> (or whatever) on the socket before the socket's been created. This patch
> fixes that.
> (Only tested on Solaris + Linux; I know nothing about those esoteric
        ^^^^^^
> OSes from Redmond.)

Is it possible to write a regression tests for this? Even if it only gets
run on a whitelist of OSes from $^O that we know behave?

I wouldn't expect those OSes from Redmond to be able to do clever things
like non-blocking. After all, they don't grok classless Internet domain
addressing.

(see http://www.arm.linux.org.uk/general/OS.php or try ping or traceroute
to 195.92.249.255 from your favourite machine/OS)

Nicholas Clark

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