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 as possible. > [N]HttpRequestExecutionHandler.submitRequest & handleResponse are the > only options, I think? >
Sam, It should be safe to close the connection in any of the events triggered by the NHttpRequestExecutionHandler interface as long as the connection gets closed on the same thread. #submitRequest seems the best option to me, if there are no more requests to submit. Oleg > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
