On Tue, 2010-10-19 at 16:04 -0700, asolodin wrote: > Is there a way to specify a connection timeout that would be different for > each host (connection pool)? I am using Http Client 3.1 in a multithreaded > environment so a single client instance is shared among many threads > executing concurrent requests to different hosts. Thus I cannot specify the > connection timeout on the client or globally. There is a setter for > connection timeout on the HttpConnectionParams but I don't see a way to > specify a different value for each host.. What I need would be similar to > how max connections per host can be specified for each HostConfiguration via > a map. Maybe I am missing something? > > Thanks > Andrei
Andrei, Socket timeout can be set either on the HTTP agent or the HTTP request level. You can set a different socket timeout value on each HTTP request depending on kind of a target host it is going to be executed against. Hope this helps Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
