This queue is for tickets about the IO-Socket-IP CPAN distribution.

Report information
The Basics
Id:
133588
Status:
new
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
cpan [...] ton.iguana.be
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
0.39
Fixed in:
(no value)



Subject: bind() failure in new() not reported for non-blocking sockets
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-30025-1603299611-288.0-0-0@rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 707
When trying to bind a socket with new() in non-blocking mode this is not a fatal error, but it should be: perl -MIO::Socket::IP -le 'push @a, IO::Socket::IP->new(LocalPort => 2345, Blocking =>0) || die "Fail: $@" for 1..2' (no output). It properly works if Blocking is on: perl -MIO::Socket::IP -le 'push @a, IO::Socket::IP->new(LocalPort => 2345, Blocking =>1) || die "Fail: $@" for 1..2' Fail: Address already in use at -e line 1. It also worked fine in IO::Socket::INET: perl -MIO::Socket::INET -le 'push @a, IO::Socket::INET->new(LocalPort => 2345, Blocking =>0) || die "Fail: $@" for 1..2' Fail: IO::Socket::INET: Address already in use at -e line 1. (tested with perl 5.30, IO::Socket::IP 0.39)


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.