Date: Wed, 04 Jan 2012 17:29:10 +0100
From: Oleg Kalnichevski <[email protected]>
To: HttpClient User Discussion <[email protected]>
Subject: Re: HttpUriRequest.abort vs EntityUtils.consume
Message-ID: <1325694550.2905.2.camel@ubuntu>
X-Mailer: Evolution 3.2.1-

On Fri, 2011-12-30 at 07:23 -0500, Chad La Joie wrote:
> In cases where there is no body, or you don't care about the body, in
> the response is there a difference between calling abort() on the
> request and using EntityUtils.consume on the response?
> 

EntityUtils#consume attempts to keep the connection alive by reading the
message until the end of stream, while HttpUriRequest#abort simply shuts
down the underlying connection.

Oleg 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to