Skip Menu |

This queue is for tickets about the IO CPAN distribution.

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

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

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

Subject: bug(?) in IO::Socket
Date: Thu, 20 Mar 2008 13:41:43 +0100
To: bug-IO [...]
From: Hajdú Zoltán <zhajdu [...]>
Download (untitled) / with headers
text/plain 645b
Hello! Environment: ============ - IO::Socket 1.29 - Linux SMP x86_64 - Perl v5.8.8 built for x86_64-linux-gnu-thread-multi Description: ============ The usual way using setsockopt to define SOL_SOCKET / SO_SNDTIMEO and SO_RCVTIMEO was the following: $socket->setsockopt(SOL_SOCKET, SO_[SND|RCV]TIMEO, pack("LL", <sec>, <msec>)) or die $!; But i've noticed that on some systems this throws an "Invalid argument" error. All documents describes they accepts two long integers as argument. There is no hint even at Google how to solve this problem. Using pack("LLLL", <sec>, <msec>) solves the issue. Yours sincerely: Zoltan Hajdu
Download (untitled) / with headers
text/plain 119b
This is not a bug in IO::Socket. IO::Socket is just providing a thin veneer over the setsockopt function perl provides

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

Please report any issues with to