mbecke 2003/11/19 05:27:42
Modified: httpclient/src/test/org/apache/commons/httpclient Tag:
HTTPCLIENT_2_0_BRANCH
TestHttpConnectionManager.java
Log:
Changed MultiThreadedHttpConnectionManager to move to a single GC thread.
Fixes memory and thread leaks.
PR: 24309
Submitted by: Michael Becke
Reviewed by: Eric Johnson
Revision Changes Path
No revision
No revision
1.8.2.2 +6 -5
jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestHttpConnectionManager.java
Index: TestHttpConnectionManager.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/httpclient/src/test/org/apache/commons/httpclient/TestHttpConnectionManager.java,v
retrieving revision 1.8.2.1
retrieving revision 1.8.2.2
diff -u -r1.8.2.1 -r1.8.2.2
--- TestHttpConnectionManager.java 19 Nov 2003 00:10:45 -0000 1.8.2.1
+++ TestHttpConnectionManager.java 19 Nov 2003 13:27:42 -0000 1.8.2.2
@@ -232,6 +232,8 @@
httpClient = null;
method = null;
+ System.gc();
+
// this sleep appears to be necessary in order to give the JVM
// time to clean up the miscellaneous pointers to the connection manager
try {
@@ -240,7 +242,6 @@
fail("shouldn't be interrupted.");
}
- System.gc();
Object connectionManager = wr.get();
assertNull("connectionManager should be null", connectionManager);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]