On Mon, Nov 20, 2006 at 04:00:53PM +0100, Roland Weber wrote: > Hello Eugeny, > > > A friend of mine told me it is possible the socket limit was exceeded, is it > > possible? > > Yes it is. > > > Does HttpClient closes sockets after it used them? > > No it doesn't. It returns connections to the connection manager, which > will try to keep the socket connection open for reuse with a subsequent > request. The number of connections in a connection manager is limited > by the "max connections" parameter. The number of connection managers > used depends on your application design. > If you want connections to be closed, send a "Connection:close" header > with each request, or implement a custom connection manager. Note that > performance will be degraded if you're hitting the same host frequently.
So if I specify: params.setMaxTotalConnections(1000); - there could be cases when there are 1000 sockets opened and not closed by HttpClient? And if there are several aplications deployed on the same host, so the number of sockets used could be N*1000? -- Eugene N Dzhurinsky --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
