> I cannot find a robust style in which I could drop a connection (GET 
> over HTTP/1.0 and HTTP/1.1) when the incoming data stream exceeds the 
> upper limit. I do it by closing the input stream, which is constructed 
> by getResponseAsStream, followed by releaseConnection. Is it OK?
> 

As far as I know invoking close on the stream returned by
HttpMethod#getResponseAsStream() will not actually close the underlying
socket stream. At the moment there's simply no reliable way to abort a
request. This problem is known to us and we are planning to address it
in the next version release (probably 2.1). It is too late for the 2.0
version which is already in the final release phase. 

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20288

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to