hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pesonen, Petteri" <Petteri.Peso...@satama.com>
Subject Closing a stream when multithreading
Date Mon, 02 Jan 2006 07:44:11 GMT

I have updated to the HttpClient 3.0 and I have a questing concerning
the use of MultiThreadedHttpConnectionManager and the
method.getResponseBodyAsStream() method.

According to the code example in threading guide
(http://jakarta.apache.org/commons/httpclient/threading.html) the stream
returned by the getResponseBodyAsStream() is not closed, but then again
the main tutorial states:

"Call method.getResponseBodyAsStream() and read the entire contents of
the stream then call stream.close(). ..."

So, just to be sure. The stream must always be closed even when using
the MultiThreadedHttpConnectionManager? Right?

Petteri  :: +358-40-8619334

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

View raw message