cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Running out of sockets

From: Rob Booth <rbooth_at_indyme.com>
Date: Wed, 1 Dec 2004 14:17:56 -0800

Dan,

Thanks in testing that shows my sockets being closed within 5 seconds of
being open instead of the almost 1 minute that I had before.

Rob

-----Original Message-----
From: Dan Fandrich [mailto:dan_at_coneharvesters.com]
Sent: Wednesday, December 01, 2004 1:00 PM
To: 'curl-library_at_cool.haxx.se'
Subject: Re: Running out of sockets

On Wed, Dec 01, 2004 at 12:47:20PM -0800, Rob Booth wrote:
> Looking at my network statistics I see my sockets end up hanging around
for
> approximately 1 minute from the time of release. What I want to know is,
is
> there a way to force my operating system (Linux - Red Hat) to release
those
> connections as soon as I'm done with them? I'm sure this isn't really a
> libCURL issue, but I thought this would be the best place to get an
answer.

Try
  sysctl -w net.ipv4.tcp_tw_recycle=1
and/or
  sysctl -w net.ipv4.tcp_tw_reuse=1

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2004-12-01