hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: HttpCore NIO and recycling connections
Date Tue, 22 Sep 2009 21:06:19 GMT
Peter Soles wrote:
> Thanks for the response and the pointers to your code.  I'll definitely take
> a look!
> I'm not clearing the read event notifications in the persistent connection.
> In my code, the connection is "born" when I get it from I
> NHttpClientHandler.connected() and I just place it on my re-use queue at the
> end of HttpRequestExecutionHandler.handleResponse(). When I need to re-use,
> I just check NHttpClientConnection.getStatus == ACTIVE and
> NHttpClientConnection.isOpen() == true.
> Should I be calling NHttpClientConnection.resetOutput()/resetInput() before
> I try and re-use the connection?
> thanks again!
> Peter

Sorry for not being specific enough. Do you call 
NHttpClientConnection#suspendInput() anywhere in your code prior to 
putting the connection on the re-use queue?


To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

View raw message