Skip Menu |
 

This queue is for tickets about the Net-Server CPAN distribution.

Report information
The Basics
Id: 85570
Status: open
Priority: 0/
Queue: Net-Server

People
Owner: Nobody in particular
Requestors: peter [...] pjsc.de
Cc:
AdminCc:

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



Subject: Net::Server::Fork - missing unpack using $sock->getsockopt
Download (untitled) / with headers
text/plain 666b
For every connection I get this output on console: Argument "\0\0\0^A\0\0\0^E\0\0\0\0\0\0\0\0\0\0\0M-\f^A^A\0\0\0M-^A..." isn't numeric in numeric eq (==) at /usr/local/site_perl/aix/Net/Server/Fork.pm line 171. Line 171 of the module is this: if (SOCK_DGRAM == $sock->getsockopt(SOL_SOCKET,SO_TYPE)) { getsockopt does not return an integer. Out of documentation: "The function returns a packed string representing the requested socket option" So I changed the code to this, which solves the problem: if (SOCK_DGRAM == unpack("i",$sock->getsockopt(SOL_SOCKET,SO_TYPE))) { Version: 2.007 and 0.63 OS: AIX 6.1 Hope this helps Best regards Peter
Subject: [rt.cpan.org #85570] Similar bug with another module (Mojolicious) on AIX, point on a bug/issue with IO::Socket
Date: Thu, 5 Dec 2013 09:52:19 -0500
To: bug-Net-Server [...] rt.cpan.org
From: yaberger [...] ca.ibm.com
Download (untitled) / with headers
text/plain 662b
Hi, Just to let you know that I've a similar bug with the module Mojolicious. In reference: https://groups.google.com/forum/#!topic/mojolicious/T34XZX72LaA We've been able to point on the getsockopt() subroutine in IO::Socket and I've opened the following ticket: https://rt.cpan.org/Public/Bug/Display.html?id=91183 However, Mojolicious maintainer has been informed that the "CPAN IO::Socket" module is not maintained anymore but is included as part of the Perl core. So I'll need to report it against Perl itself (P5P). I'll refer my ticket and yours as it seems to be the same or a similar bug. Best regards, Yannick Bergeron Advisory IT Specialist


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

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