Hi Mathias,

> 
> unfortunately I can't reuse the HttpClient.
> though, I know yours is the better solution...

Then consider reusing the (multi threaded) connection manager.

> --snip--
> client.executeMethod(get);
> ...
> ... = get.getResponseBody();
> ...
> get.releaseConnection();
> client.getHttpConnectionManager().getConnection(get.
> getHostConfiguration()).close();
> --snap--
> 
> it's a bit ugly, but I think it works...

Why don't you add the "connection: close" header
to 'get' before executing? That is almost pretty
and works with any kind of connection manager, not
just the simple one.

cheers,
  Roland




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

Reply via email to