Re: Running out of connections

2003-02-03 Thread Eric Johnson
executeMethod(method); // System.gc(); // method.releaseConnection(); } } Uncommenting either of the last two lines makes the problem go away... - Original Message - From: "Michael Becke" <[EMAIL PROTECTED]> To: "Commons HttpClient

Re: Running out of connections

2003-02-02 Thread Simon Roberts
> Yes, but you have done a very bad thing here. By doing the > executeMethod(), you have established a connection to the server, and > have read the headers. But then you are closing the connection before > reading the body. The client (thats you!) is responsible for completing > the read by

Re: Running out of connections

2003-02-02 Thread Jeffrey Dever
ll a handle on the method at this point, and the connection is still in use so neither are elligible for garbage collection ... Jandalf. - Original Message - From: "Michael Becke" <[EMAIL PROTECTED]> To: "Commons HttpClient Project" <[EMAIL PROTECTED]> S

Re: Running out of connections

2003-02-02 Thread Simon Roberts
;Commons HttpClient Project" <[EMAIL PROTECTED]> Sent: Sunday, February 02, 2003 6:18 AM Subject: Re: Running out of connections > Hello Simon, > > Sorry to be replying so late. Connections are released when: > > 1) the response is fully read > 2) the connection i

Re: Running out of connections

2003-02-01 Thread Michael Becke
not freed! Shouldn't we expire them if we're running out of connections? Cheers, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Running out of connections

2003-02-01 Thread Jeffrey Dever
) and the reply include a "Connection: close". If no garbage-collect happens then the connections are not freed! Shouldn't we expire them if we're running out of connections? Cheers, Simon - To unsubsc

Re: Running out of connections

2003-02-01 Thread Oleg Kalnichevski
Shouldn't we expire them if we're running out of connections? > > Cheers, Simon -- Oleg Kalnichevski <[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Running out of connections

2003-01-29 Thread Simon Roberts
ns are not freed! Shouldn't we expire them if we're running out of connections? Cheers, Simon