hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lior grinfeld" <lior.grinf...@gmail.com>
Subject release connection issue
Date Sun, 26 Aug 2007 12:57:42 GMT
Hi,

i have this code
*

public* *void* testSimpleHTTP() *throws* Exception{

HttpClient client = *new* HttpClient();

GetMethod method = *new* GetMethod("http://1.2.3.*4*/1k.txt");

 client.executeMethod(method);

method.releaseConnection();

client.getHttpConnectionManager().releaseConnection(
client.getHttpConnectionManager().getConnection(client.getHostConfiguration
()));

}
the question is: why the line with method.releaseConnection does nothing
while the client release connection do the Fin 4 ways hand shake?
should i use both or just one of them? i need a graceful termination of
connection NOT RST.
what do you recommend?

thanks
Lior

-- 

Regards
Lior Grinfeld

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message