No problem. I'm sorry it took so long to happen.
Mike
Adam R. B. Jack wrote:
> Thanks, this works for me. I appreciate the patch.
> regards
> Adam
> ----- Original Message -----
> From: <mbecke@apache.org>
> To: <jakarta-commons-cvs@apache.org>
> Sent: Thursday, September 25, 2003 8:44 PM
> Subject: cvs commit:
> jakarta-commons/httpclient/src/java/org/apache/commons/httpclient
> MultiThreadedHttpConnectionManager.java
>
>
>
>>mbecke 2003/09/25 19:44:18
>>
>> Modified: httpclient/src/java/org/apache/commons/httpclient
>> MultiThreadedHttpConnectionManager.java
>> Log:
>> Fixes connection release problem.
>> PR: 22800
>> Submitted by: Michael Becke
>>
>> Revision Changes Path
>> 1.25 +4 -4
>
> jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/MultiThrea
> dedHttpConnectionManager.java
>
>> Index: MultiThreadedHttpConnectionManager.java
>> ===================================================================
>> RCS file:
>
> /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/
> MultiThreadedHttpConnectionManager.java,v
>
>> retrieving revision 1.24
>> retrieving revision 1.25
>> diff -u -r1.24 -r1.25
>> --- MultiThreadedHttpConnectionManager.java 1 Sep 2003 18:06:55 -0000
>
> 1.24
>
>> +++ MultiThreadedHttpConnectionManager.java 26 Sep 2003 02:44:18 -0000
>
> 1.25
>
>> @@ -996,7 +996,7 @@
>> }
>>
>> public void releaseConnection() {
>> - if (hasConnection()) {
>> + if (!isLocked() && hasConnection()) {
>> HttpConnection wrappedConnection =
>
> this.wrappedConnection;
>
>> this.wrappedConnection = null;
>> wrappedConnection.releaseConnection();
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
|