Hi all,
I am testing with http-client-4.0-alha3.
Roughly, I have this code:
HttpPost p = new HttpPost(url...);
p.setEntity(entity....);
HttpResponse r = httpClient.execute(p);
HttpEntity ent = r.getEntity();
OutputStream out = ...
ent.writeTo(out);
// we need this seperate call, so the connection is released
ent.consumeContent();
out.close();
The extra consumeContent() call is needed so that the connection gets freed.
However, I would expect writeTo() is doing this, since it processes the whole
input.
Bug or feature? ;)
Best,
Jens
--
"Everything superfluous is wrong!"
// Jens Wilke - headissue GmbH - Munich - Germany
\// http://www.headissue.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]