Re: Closing a non-blocking client connection?

2008-03-13 Thread Oleg Kalnichevski
On Thu, 2008-03-13 at 16:44 -0400, Sam Berlin wrote: > Oleg, > > NHttpClientHandler#timeout works well if you are expecting the > connections to be reused. However, there are instances where you know > ahead of time that you're done with that connection and want to clean > up resources as fast a

Re: Closing a non-blocking client connection?

2008-03-13 Thread Sam Berlin
Oleg, NHttpClientHandler#timeout works well if you are expecting the connections to be reused. However, there are instances where you know ahead of time that you're done with that connection and want to clean up resources as fast as possible. [N]HttpRequestExecutionHandler.submitRequest & handleR

Re: Closing a non-blocking client connection?

2008-03-13 Thread Oleg Kalnichevski
On Thu, 2008-03-13 at 15:36 -0400, Sam Berlin wrote: > Is there a preferred way of closing a connection using the IOReactors > & [N]HttpRequestExecutionHandlers? The only thing I can think of > would be to close it in submitRequest or handleResponse. Is there > another (better?) way of doing it?

Closing a non-blocking client connection?

2008-03-13 Thread Sam Berlin
Is there a preferred way of closing a connection using the IOReactors & [N]HttpRequestExecutionHandlers? The only thing I can think of would be to close it in submitRequest or handleResponse. Is there another (better?) way of doing it? Thanks, Sam --