Skip Menu |
 

This queue is for tickets about the IO CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: eponymousalias [...] yahoo.com
Cc:
AdminCc:

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



Subject: support needed in IO::Socket::INET for SO_SNDBUF and SO_RCVBUF
Date: Sat, 28 Nov 2009 23:41:13 -0800 (PST)
To: bug-IO [...] rt.cpan.org
From: eponymous alias <eponymousalias [...] yahoo.com>
Download (untitled) / with headers
text/plain 861b
The Linux tcp(7) man page says in part: The maximum sizes for socket buffers declared via the SO_SNDBUF and SO_RCVBUF mechanisms are limited by the global net.core.rmem_max and net.core.wmem_max sysctls. ... On individual connections, the socket buffer size must be set prior to the listen() or connect() calls in order to have it take effect. This last sentence means that the IO::Socket::INET constructor must provide options to set the send and receive buffers if they are to be controllable, since the constructor does not return until after the listen() or connect() call has already been made. I propose that two new options be added to the constructor: SendBuf => $send_buffer_size RecvBuf => $recv_buffer_size so that these values can be set when the socket is created. The attached INET.pm.patch provides this capability.
Download INET.pm.patch
text/x-diff 1.3k

Message body is not shown because sender requested not to inline it.

Ticket migrated to github as https://github.com/toddr/IO/issues/6


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.