MIME-Version: | 1.0 |
X-Ymail-Osg: | 8P9b4bwVM1naWEYjY0nuEm7faphfq9pIZTjBrn617FSJiFkakkvGEKq7axb_Run41KzgU32T2KFU.K6pwkSx5SxdT3hOD1W0IQ5yo9.QxaFUI856tsWBS_ovbJrtVNY1sZ3BK6Pg_B9McfINGAL2HxYyqfSZpYATL08hSh2hmzoBeucLr1Cz3bQBnA.zrtYH5LqrkdEh8oAVWrEKCC.X7_K8HzQ6EdA0pDgpbI9c4jIcqsKteIP_bY2amY45vORiKyiq8kOYfTPJt2PZYhvZLIZR0gJUDkSSw7H46amb4G0J5SZb3IU.FgyPisY5pnknTZNOfMTGFDTZgCc3nkI10Ei0tL2LOxTdpXLyNoaUyuSi0_lyxDC_YX_4g2j_lhGiCA8oZ3mwZMRjNeNta31YO3WGwScsqaaQOaGxeE3BTw-- |
X-Spam-Status: | No, hits=0.0 required=8.0 tests=DK_POLICY_TESTING,DK_SIGNED,DK_VERIFIED |
X-Mailer: | YahooMailClassic/8.1.6 YahooMailWebService/0.8.100.260964 |
X-Virus-Checked: | Checked by ClamAV on 16.mx.develooper.com |
Content-Type: | multipart/mixed; boundary="0-1062668035-1259480473=:59409" |
Message-ID: | <490737.59409.qm [...] web36606.mail.mud.yahoo.com> |
Received: | from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by diesel.bestpractical.com (Postfix) with SMTP id 4A20719B802A for <bug-IO [...] rt.cpan.org>; Sun, 29 Nov 2009 02:41:19 -0500 (EST) |
Received: | (qmail 19792 invoked by uid 103); 29 Nov 2009 07:41:18 -0000 |
Received: | from x16.dev (10.0.100.26) by x1.dev with QMQP; 29 Nov 2009 07:41:18 -0000 |
Received: | from web36606.mail.mud.yahoo.com (HELO web36606.mail.mud.yahoo.com) (209.191.85.23) by 16.mx.develooper.com (qpsmtpd/0.80) with SMTP; Sat, 28 Nov 2009 23:41:16 -0800 |
Received: | (qmail 60452 invoked by uid 60001); 29 Nov 2009 07:41:13 -0000 |
Received: | from [69.228.95.119] by web36606.mail.mud.yahoo.com via HTTP; Sat, 28 Nov 2009 23:41:13 PST |
Delivered-To: | cpan-bug+IO [...] diesel.bestpractical.com |
Subject: | support needed in IO::Socket::INET for SO_SNDBUF and SO_RCVBUF |
Return-Path: | <eponymousalias [...] yahoo.com> |
Domainkey-Signature: | a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=C8Ud7lICSRzxI3Rc5yD0tKGNpeBSdhzWZrHwk7l0VTf5uX2490qtYr28st7slpH/qxmwYiDA2eU7Oq3harOaxtIT+jp2KXZ9nr2IgF8x+vJRhCmTd+bY6YwAP5DQ429AAM3V1O5lHTcDMcUcAFgJKtmDiY6QvtbkLpMTWmA7RG4=; |
X-Original-To: | bug-IO [...] rt.cpan.org |
X-Spam-Check-BY: | 16.mx.develooper.com |
Dkim-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1259480473; bh=Xxj/X+GlBc19dLlvp3g7z/L8BGq9SgWnlF15Ftzw2v4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=f9E13cTE7Y1TFGIhQyTkWlMp2tDhhqURGaMQ4T0YnElCA9NYBkLV1admeHUBCkUR1XmXsgp00HKybemikaGvF404rxXx5J1hwEnOB3BWp2qMju9okZZJqrYSm+chMrKiWPaL4/3TBCxEvpZ2Cu4edl8+C3rZZkgbAEn0jjJg/CQ= |
Date: | Sat, 28 Nov 2009 23:41:13 -0800 (PST) |
X-Spam-Level: | * |
To: | bug-IO [...] rt.cpan.org |
From: | eponymous alias <eponymousalias [...] yahoo.com> |
Content-Length: | 0 |
content-type: | text/plain; charset="utf-8" |
X-RT-Original-Encoding: | us-ascii |
Content-Length: | 861 |
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.
content-type: | text/x-patch; name="INET.pm.patch" |
content-disposition: | attachment; filename="INET.pm.patch" |
Content-Transfer-Encoding: | base64 |
Content-Length: | 1393 |
Message body is not shown because sender requested not to inline it.