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 & handleResponse are the only options, I think?
Sam On Thu, Mar 13, 2008 at 4:11 PM, Oleg Kalnichevski <[EMAIL PROTECTED]> wrote: > > > 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? > > > > Sam, > > You probably want to close a connection when it is no longer needed? > What about NHttpClientHandler#timeout? > > Oleg > > > > Thanks, > > Sam > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
