hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera" <asan...@apache.org>
Subject The best strategy to handle send aborts by remote server
Date Tue, 21 Sep 2010 18:26:30 GMT
Hi All

When using HttpCore/NIO and sending a request, the remote party may 
pre-maturely send its response, before the send by the requesting client 
completes.

When the AsyncNHttpClientHandler:processResponse() sees the response, it 
will close or reset the connection with a connState.resetOutput(); This 
causes the subsequent socket write attempt from outputReady()

ProducingNHttpEntity entity = connState.getProducingEntity();

to return null for the entity, causing a NPE.. What is the best way to 
handle this scenario?

thanks
asankha

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com	





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


Mime
View raw message