Skip Menu |

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

Report information
The Basics
Id: 115036
Status: open
Priority: 0/
Queue: IO-Socket-IP

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

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



Subject: EMFILE error is not reported correctly
$ (ulimit -n 16; perl -MIO::Socket::IP -E 'while(my $s = IO::Socket::IP->new->socket( PF_INET, SOCK_STREAM, 0 )) { push @s, $s; } die $!') Bad file descriptor at -e line 1. Was expecting Too many open files at -e line 1. -- Paul Evans
Oh. This is core perl's bug: $ perl -Mblib -MIO::Socket -E 'while(my $s = IO::Socket->new->socket( PF_INET, SOCK_STREAM, 0 )) { push @s, $s; } die $!' Bad file descriptor at -e line 1. Behaves the same with IO::Socket -- Paul Evans
On Fri Jun 03 10:49:14 2016, PEVANS wrote: Show quoted text
> Oh. This is core perl's bug: > > $ perl -Mblib -MIO::Socket -E 'while(my $s = IO::Socket->new->socket( > PF_INET, SOCK_STREAM, 0 )) { push @s, $s; } die $!' > Bad file descriptor at -e line 1. > > Behaves the same with IO::Socket
$ perl -Mblib -MSocket -E 'while(socket my $s, PF_INET, SOCK_STREAM, 0) { push @s, $s; } die $!' Bad file descriptor at -e line 1. Or even with CORE::socket() -- Paul Evans
RT-Send-CC: ANDK [...] cpan.org
On 2016-06-03 10:39:24, PEVANS wrote: Show quoted text
> $ (ulimit -n 16; > perl -MIO::Socket::IP -E 'while(my $s = IO::Socket::IP->new-
> >socket( PF_INET, SOCK_STREAM, 0 )) { push @s, $s; } die $!')
> Bad file descriptor at -e line 1. > > Was expecting > > Too many open files at -e line 1.
Maybe a regression between 5.20.x and 5.22.x? $ (ulimit -n 16; perl5.20.3 -MIO::Socket::IP -E 'while(my $s = IO::Socket::IP->new->socket( PF_INET, SOCK_STREAM, 0 )) { push @s, $s; } die $!') Too many open files at -e line 1. $ (ulimit -n 16; perl5.22.2 -MIO::Socket::IP -E 'while(my $s = IO::Socket::IP->new->socket( PF_INET, SOCK_STREAM, 0 )) { push @s, $s; } die $!') Bad file descriptor at -e line 1. @Andreas: maybe a bisect candidate?
RT-Send-CC: ANDK [...] cpan.org
On Sat Jun 11 05:43:52 2016, SREZIC wrote: Show quoted text
> @Andreas: maybe a bisect candidate?
As mentioned in perl ticket #128316, it was 375ed12a.
Subject: [rt.cpan.org #115036] subscribe to updates
Date: Tue, 02 Aug 2016 20:35:31 -0400
To: bug-IO-Socket-IP [...] rt.cpan.org
From: starlight.2016q3 [...] binnacle.cx
subscribe to updates