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

Reply via email to