cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Running out of sockets

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 1 Dec 2004 13:00:02 -0800

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