hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: MultiThreadedHttpConnectionManager question
Date Fri, 10 Oct 2003 02:37:11 GMT
This definitely looks like the problem.  I think it's a little late to 
add this as a config option for 2.0, but should definitely be possible 
in head.  What do people think?

Mike

On Thursday, October 9, 2003, at 04:56 AM, Andrea Fabris wrote:

> I  took a look on the httpclient sourcecode and i noticed that in the
> HttpConnection.open() method the socket is not setted to use the 
> SO_LINGER
> value (as stated in th link forwarded by Odi).
> Have you tried to use it and maybe it causes some problems?
>
> Let me know
>
> Regards
> Andrea Fabris
> Sytel Reply
>
> On Thu, 09 Oct 2003 09:20:08 +0200 Ortwin [OGc] wrote:
>
>  OGc> It seems that this can be worked around by setting the SO_LINGER 
> time.
>  OGc> See this posting for details:
>  OGc>
>  OGc> http://www.geocrawler.com/archives/3/928/2000/5/0/3820105/
>  OGc>
>  OGc> Odi
>  OGc>
>  OGc> Michael Becke wrote:
>  ??>> Hi Andrea,
>  ??>>
>  ??>> The MultiThreadedHttpConnectionManager creates connections and 
> keeps
>  ??>> them open as long as it can.  The number of connections kept 
> open can
>  ??>> be configured using setMaxConnectionsPerHost() and
>  ??>> setMaxTotalConnections().  The issue of the sockets in the 
> CLOSE_WAIT
>  ??>> state seems to be a side effect of linux.  In particular it 
> seems to
>  ??>> keep sockets is this state even after the java.net.Socket has 
> been
>  ??>> closed.  I don't think there is much that can be done about it.
>  ??>>
>  ??>> Mike
>
>
>
> --
> Email.it, the professional e-mail, gratis per te: http://www.email.it/f
>
> Sponsor:
> Partecipa anche tu al progetto ShopMon: la Rete che fa bene
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1953&d=9-10
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: 
> commons-httpclient-dev-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message