Folks, Is there a way to reclaim connections once they are leaked ? For testing I configured a client with maxconnectionperservice=1 and IdleConnectionMonitorThread running every 5 seconds. My test is leaking connection and once it runs 1 test, it fails with ConnectionPoolTimeoutException. From the wire log I do see connection being made after request 1 even though I allocated just 1 connection per host. But test fails with ConnectionPoolTimeoutException as expected. I am running with httpclient-4.3.3
Should IdleConnectionMonitorThread clean up leaked connections ? If not - is there any other suggestion to handle buggy code leaking connections ? Please find attached wire log. Test case: @Test(invocationCount = 3) public void testTwo() throws ClientProtocolException, IOException { HttpResponse response = httpclient.execute(new HttpGet("http://yahoo.com")); int status = response.getStatusLine().getStatusCode(); response.getEntity(); System.out.println(status); count++; System.out.println(count); } Thanks, Jaikit
2014-05-14 16:33:11,557 DEBUG - CookieSpec selected: best-match 2014-05-14 16:33:11,569 DEBUG - Auth cache not set in the context 2014-05-14 16:33:11,570 DEBUG - Connection request: [route: {}->http://yahoo.com:80][total kept alive: 0; route allocated: 0 of 1; total allocated: 0 of 20] 2014-05-14 16:33:11,584 DEBUG - Connection leased: [id: 0][route: {}->http://yahoo.com:80][total kept alive: 0; route allocated: 1 of 1; total allocated: 1 of 20] 2014-05-14 16:33:11,588 DEBUG - Opening connection {}->http://yahoo.com:80 2014-05-14 16:33:11,590 DEBUG - Connecting to yahoo.com/98.139.183.24:80 2014-05-14 16:33:11,656 DEBUG - Connection established 10.72.122.42:43994<->98.139.183.24:80 2014-05-14 16:33:11,656 DEBUG - Executing request GET / HTTP/1.1 2014-05-14 16:33:11,657 DEBUG - Target auth state: UNCHALLENGED 2014-05-14 16:33:11,657 DEBUG - Proxy auth state: UNCHALLENGED 2014-05-14 16:33:11,658 DEBUG - http-outgoing-0 >> GET / HTTP/1.1 2014-05-14 16:33:11,659 DEBUG - http-outgoing-0 >> Host: yahoo.com 2014-05-14 16:33:11,659 DEBUG - http-outgoing-0 >> Connection: Keep-Alive 2014-05-14 16:33:11,659 DEBUG - http-outgoing-0 >> Accept-Encoding: gzip,deflate 2014-05-14 16:33:11,659 DEBUG - http-outgoing-0 >> "GET / HTTP/1.1[\r][\n]" 2014-05-14 16:33:11,659 DEBUG - http-outgoing-0 >> "Host: yahoo.com[\r][\n]" 2014-05-14 16:33:11,659 DEBUG - http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]" 2014-05-14 16:33:11,659 DEBUG - http-outgoing-0 >> "Accept-Encoding: gzip,deflate[\r][\n]" 2014-05-14 16:33:11,659 DEBUG - http-outgoing-0 >> "[\r][\n]" 2014-05-14 16:33:11,725 DEBUG - http-outgoing-0 << "HTTP/1.1 301 Redirect[\r][\n]" 2014-05-14 16:33:11,725 DEBUG - http-outgoing-0 << "Date: Wed, 14 May 2014 23:33:11 GMT[\r][\n]" 2014-05-14 16:33:11,725 DEBUG - http-outgoing-0 << "Connection: close[\r][\n]" 2014-05-14 16:33:11,725 DEBUG - http-outgoing-0 << "Via: http/1.1 ir43.fp.bf1.yahoo.com (ApacheTrafficServer/4.0.2)[\r][\n]" 2014-05-14 16:33:11,725 DEBUG - http-outgoing-0 << "Server: ATS[\r][\n]" 2014-05-14 16:33:11,725 DEBUG - http-outgoing-0 << "Cache-Control: no-store[\r][\n]" 2014-05-14 16:33:11,725 DEBUG - http-outgoing-0 << "Content-Type: text/html; charset=utf-8[\r][\n]" 2014-05-14 16:33:11,725 DEBUG - http-outgoing-0 << "Content-Language: en[\r][\n]" 2014-05-14 16:33:11,725 DEBUG - http-outgoing-0 << "Location: https://www.yahoo.com/[\r][\n]" 2014-05-14 16:33:11,725 DEBUG - http-outgoing-0 << "Content-Length: 213[\r][\n]" 2014-05-14 16:33:11,725 DEBUG - http-outgoing-0 << "[\r][\n]" 2014-05-14 16:33:11,725 DEBUG - http-outgoing-0 << "<HTML>[\n]" 2014-05-14 16:33:11,725 DEBUG - http-outgoing-0 << "<HEAD>[\n]" 2014-05-14 16:33:11,726 DEBUG - http-outgoing-0 << "<TITLE>Error</TITLE>[\n]" 2014-05-14 16:33:11,726 DEBUG - http-outgoing-0 << "</HEAD>[\n]" 2014-05-14 16:33:11,726 DEBUG - http-outgoing-0 << "[\n]" 2014-05-14 16:33:11,726 DEBUG - http-outgoing-0 << "<BODY BGCOLOR="white" FGCOLOR="black">[\n]" 2014-05-14 16:33:11,726 DEBUG - http-outgoing-0 << "<H1>Error</H1>[\n]" 2014-05-14 16:33:11,726 DEBUG - http-outgoing-0 << "<HR>[\n]" 2014-05-14 16:33:11,726 DEBUG - http-outgoing-0 << "[\n]" 2014-05-14 16:33:11,726 DEBUG - http-outgoing-0 << "<FONT FACE="Helvetica,Arial"><B>[\n]" 2014-05-14 16:33:11,726 DEBUG - http-outgoing-0 << "Description: Could not process this "GET" request.[\n]" 2014-05-14 16:33:11,726 DEBUG - http-outgoing-0 << "</B></FONT>[\n]" 2014-05-14 16:33:11,726 DEBUG - http-outgoing-0 << "<HR>[\n]" 2014-05-14 16:33:11,726 DEBUG - http-outgoing-0 << "</BODY>[\n]" 2014-05-14 16:33:11,730 DEBUG - http-outgoing-0 << HTTP/1.1 301 Redirect 2014-05-14 16:33:11,730 DEBUG - http-outgoing-0 << Date: Wed, 14 May 2014 23:33:11 GMT 2014-05-14 16:33:11,730 DEBUG - http-outgoing-0 << Connection: close 2014-05-14 16:33:11,730 DEBUG - http-outgoing-0 << Via: http/1.1 ir43.fp.bf1.yahoo.com (ApacheTrafficServer/4.0.2) 2014-05-14 16:33:11,730 DEBUG - http-outgoing-0 << Server: ATS 2014-05-14 16:33:11,730 DEBUG - http-outgoing-0 << Cache-Control: no-store 2014-05-14 16:33:11,730 DEBUG - http-outgoing-0 << Content-Type: text/html; charset=utf-8 2014-05-14 16:33:11,730 DEBUG - http-outgoing-0 << Content-Language: en 2014-05-14 16:33:11,731 DEBUG - http-outgoing-0 << Location: https://www.yahoo.com/ 2014-05-14 16:33:11,731 DEBUG - http-outgoing-0 << Content-Length: 213 2014-05-14 16:33:11,739 DEBUG - Resetting target auth state 2014-05-14 16:33:11,739 DEBUG - Redirecting to 'https://www.yahoo.com/' via {s}->https://www.yahoo.com:443 2014-05-14 16:33:11,740 DEBUG - http-outgoing-0: Shutdown connection 2014-05-14 16:33:11,740 DEBUG - Connection discarded 2014-05-14 16:33:11,740 DEBUG - http-outgoing-0: Close connection 2014-05-14 16:33:11,741 DEBUG - Connection released: [id: 0][route: {}->http://yahoo.com:80][total kept alive: 0; route allocated: 0 of 1; total allocated: 0 of 20] 2014-05-14 16:33:11,741 DEBUG - CookieSpec selected: best-match 2014-05-14 16:33:11,741 DEBUG - Auth cache not set in the context 2014-05-14 16:33:11,741 DEBUG - Connection request: [route: {s}->https://www.yahoo.com:443][total kept alive: 0; route allocated: 0 of 1; total allocated: 0 of 20] 2014-05-14 16:33:11,741 DEBUG - Connection leased: [id: 1][route: {s}->https://www.yahoo.com:443][total kept alive: 0; route allocated: 1 of 1; total allocated: 1 of 20] 2014-05-14 16:33:11,741 DEBUG - Opening connection {s}->https://www.yahoo.com:443 2014-05-14 16:33:11,742 DEBUG - Connecting to www.yahoo.com/206.190.36.105:443 2014-05-14 16:33:12,037 DEBUG - Connection established 10.72.122.42:47725<->206.190.36.105:443 2014-05-14 16:33:12,038 DEBUG - Executing request GET / HTTP/1.1 2014-05-14 16:33:12,038 DEBUG - Target auth state: UNCHALLENGED 2014-05-14 16:33:12,038 DEBUG - Proxy auth state: UNCHALLENGED 2014-05-14 16:33:12,038 DEBUG - http-outgoing-1 >> GET / HTTP/1.1 2014-05-14 16:33:12,038 DEBUG - http-outgoing-1 >> Host: www.yahoo.com 2014-05-14 16:33:12,038 DEBUG - http-outgoing-1 >> Connection: Keep-Alive 2014-05-14 16:33:12,038 DEBUG - http-outgoing-1 >> Accept-Encoding: gzip,deflate 2014-05-14 16:33:12,038 DEBUG - http-outgoing-1 >> "GET / HTTP/1.1[\r][\n]" 2014-05-14 16:33:12,038 DEBUG - http-outgoing-1 >> "Host: www.yahoo.com[\r][\n]" 2014-05-14 16:33:12,038 DEBUG - http-outgoing-1 >> "Connection: Keep-Alive[\r][\n]" 2014-05-14 16:33:12,038 DEBUG - http-outgoing-1 >> "Accept-Encoding: gzip,deflate[\r][\n]" 2014-05-14 16:33:12,038 DEBUG - http-outgoing-1 >> "[\r][\n]" 2014-05-14 16:33:12,066 DEBUG - http-outgoing-1 << "HTTP/1.1 200 OK[\r][\n]" 2014-05-14 16:33:12,066 DEBUG - http-outgoing-1 << "Date: Wed, 14 May 2014 23:32:34 GMT[\r][\n]" 2014-05-14 16:33:12,066 DEBUG - http-outgoing-1 << "P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"[\r][\n]" 2014-05-14 16:33:12,066 DEBUG - http-outgoing-1 << "Last-Modified: Wed, 14 May 2014 23:31:50 GMT[\r][\n]" 2014-05-14 16:33:12,066 DEBUG - http-outgoing-1 << "Accept-Ranges: bytes[\r][\n]" 2014-05-14 16:33:12,066 DEBUG - http-outgoing-1 << "Vary: Accept-Encoding[\r][\n]" 2014-05-14 16:33:12,066 DEBUG - http-outgoing-1 << "Content-Encoding: gzip[\r][\n]" 2014-05-14 16:33:12,066 DEBUG - http-outgoing-1 << "Content-Length: 18853[\r][\n]" 2014-05-14 16:33:12,067 DEBUG - http-outgoing-1 << "Content-Type: text/html; charset=utf-8[\r][\n]" 2014-05-14 16:33:12,067 DEBUG - http-outgoing-1 << "Age: 38[\r][\n]" 2014-05-14 16:33:12,067 DEBUG - http-outgoing-1 << "Via: http/1.1 fs6.fp.gq1.yahoo.com (ApacheTrafficServer/4.0.2 [cHs f ]), https/1.1 ir18.fp.gq1.yahoo.com (ApacheTrafficServer/4.0.2)[\r][\n]" 2014-05-14 16:33:12,067 DEBUG - http-outgoing-1 << "Server: ATS[\r][\n]" 2014-05-14 16:33:12,067 DEBUG - http-outgoing-1 << "Cache-Control: no-store, no-cache, private, max-age=0[\r][\n]" 2014-05-14 16:33:12,067 DEBUG - http-outgoing-1 << "Expires: -1[\r][\n]" 2014-05-14 16:33:12,067 DEBUG - http-outgoing-1 << "Connection: keep-alive[\r][\n]" 2014-05-14 16:33:12,067 DEBUG - http-outgoing-1 << "[\r][\n]" 2014-05-14 16:33:12,067 DEBUG - http-outgoing-1 << HTTP/1.1 200 OK 2014-05-14 16:33:12,067 DEBUG - http-outgoing-1 << Date: Wed, 14 May 2014 23:32:34 GMT 2014-05-14 16:33:12,068 DEBUG - http-outgoing-1 << P3P: policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV" 2014-05-14 16:33:12,068 DEBUG - http-outgoing-1 << Last-Modified: Wed, 14 May 2014 23:31:50 GMT 2014-05-14 16:33:12,068 DEBUG - http-outgoing-1 << Accept-Ranges: bytes 2014-05-14 16:33:12,068 DEBUG - http-outgoing-1 << Vary: Accept-Encoding 2014-05-14 16:33:12,068 DEBUG - http-outgoing-1 << Content-Encoding: gzip 2014-05-14 16:33:12,068 DEBUG - http-outgoing-1 << Content-Length: 18853 2014-05-14 16:33:12,068 DEBUG - http-outgoing-1 << Content-Type: text/html; charset=utf-8 2014-05-14 16:33:12,068 DEBUG - http-outgoing-1 << Age: 38 2014-05-14 16:33:12,068 DEBUG - http-outgoing-1 << Via: http/1.1 fs6.fp.gq1.yahoo.com (ApacheTrafficServer/4.0.2 [cHs f ]), https/1.1 ir18.fp.gq1.yahoo.com (ApacheTrafficServer/4.0.2) 2014-05-14 16:33:12,068 DEBUG - http-outgoing-1 << Server: ATS 2014-05-14 16:33:12,068 DEBUG - http-outgoing-1 << Cache-Control: no-store, no-cache, private, max-age=0 2014-05-14 16:33:12,068 DEBUG - http-outgoing-1 << Expires: -1 2014-05-14 16:33:12,068 DEBUG - http-outgoing-1 << Connection: keep-alive 2014-05-14 16:33:12,070 DEBUG - Connection can be kept alive indefinitely 200 1 2014-05-14 16:33:16,292 DEBUG - Closing expired connections 2014-05-14 16:33:16,293 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:16,343 DEBUG - Closing expired connections 2014-05-14 16:33:16,343 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:16,347 DEBUG - Closing expired connections 2014-05-14 16:33:16,347 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:21,296 DEBUG - Closing expired connections 2014-05-14 16:33:21,296 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:21,345 DEBUG - Closing expired connections 2014-05-14 16:33:21,345 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:21,351 DEBUG - Closing expired connections 2014-05-14 16:33:21,351 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:26,298 DEBUG - Closing expired connections 2014-05-14 16:33:26,298 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:26,347 DEBUG - Closing expired connections 2014-05-14 16:33:26,347 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:26,354 DEBUG - Closing expired connections 2014-05-14 16:33:26,354 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:27,750 DEBUG - CookieSpec selected: best-match 2014-05-14 16:33:27,750 DEBUG - Auth cache not set in the context 2014-05-14 16:33:27,750 DEBUG - Connection request: [route: {}->http://yahoo.com:80][total kept alive: 0; route allocated: 0 of 1; total allocated: 1 of 20] 2014-05-14 16:33:27,750 DEBUG - Connection leased: [id: 2][route: {}->http://yahoo.com:80][total kept alive: 0; route allocated: 1 of 1; total allocated: 2 of 20] 2014-05-14 16:33:27,750 DEBUG - Opening connection {}->http://yahoo.com:80 2014-05-14 16:33:27,750 DEBUG - Connecting to yahoo.com/98.139.183.24:80 2014-05-14 16:33:27,816 DEBUG - Connection established 10.72.122.42:43996<->98.139.183.24:80 2014-05-14 16:33:27,817 DEBUG - Executing request GET / HTTP/1.1 2014-05-14 16:33:27,817 DEBUG - Target auth state: UNCHALLENGED 2014-05-14 16:33:27,817 DEBUG - Proxy auth state: UNCHALLENGED 2014-05-14 16:33:27,817 DEBUG - http-outgoing-2 >> GET / HTTP/1.1 2014-05-14 16:33:27,817 DEBUG - http-outgoing-2 >> Host: yahoo.com 2014-05-14 16:33:27,817 DEBUG - http-outgoing-2 >> Connection: Keep-Alive 2014-05-14 16:33:27,817 DEBUG - http-outgoing-2 >> Accept-Encoding: gzip,deflate 2014-05-14 16:33:27,817 DEBUG - http-outgoing-2 >> "GET / HTTP/1.1[\r][\n]" 2014-05-14 16:33:27,817 DEBUG - http-outgoing-2 >> "Host: yahoo.com[\r][\n]" 2014-05-14 16:33:27,817 DEBUG - http-outgoing-2 >> "Connection: Keep-Alive[\r][\n]" 2014-05-14 16:33:27,817 DEBUG - http-outgoing-2 >> "Accept-Encoding: gzip,deflate[\r][\n]" 2014-05-14 16:33:27,817 DEBUG - http-outgoing-2 >> "[\r][\n]" 2014-05-14 16:33:27,883 DEBUG - http-outgoing-2 << "HTTP/1.1 301 Redirect[\r][\n]" 2014-05-14 16:33:27,883 DEBUG - http-outgoing-2 << "Date: Wed, 14 May 2014 23:33:27 GMT[\r][\n]" 2014-05-14 16:33:27,883 DEBUG - http-outgoing-2 << "Connection: close[\r][\n]" 2014-05-14 16:33:27,883 DEBUG - http-outgoing-2 << "Via: http/1.1 ir5.fp.bf1.yahoo.com (ApacheTrafficServer/4.0.2)[\r][\n]" 2014-05-14 16:33:27,883 DEBUG - http-outgoing-2 << "Server: ATS[\r][\n]" 2014-05-14 16:33:27,883 DEBUG - http-outgoing-2 << "Cache-Control: no-store[\r][\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "Content-Type: text/html; charset=utf-8[\r][\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "Content-Language: en[\r][\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "Location: https://www.yahoo.com/[\r][\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "Content-Length: 213[\r][\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "[\r][\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "<HTML>[\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "<HEAD>[\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "<TITLE>Error</TITLE>[\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "</HEAD>[\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "[\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "<BODY BGCOLOR="white" FGCOLOR="black">[\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "<H1>Error</H1>[\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "<HR>[\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "[\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "<FONT FACE="Helvetica,Arial"><B>[\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "Description: Could not process this "GET" request.[\n]" 2014-05-14 16:33:27,884 DEBUG - http-outgoing-2 << "</B></FONT>[\n]" 2014-05-14 16:33:27,885 DEBUG - http-outgoing-2 << "<HR>[\n]" 2014-05-14 16:33:27,885 DEBUG - http-outgoing-2 << "</BODY>[\n]" 2014-05-14 16:33:27,885 DEBUG - http-outgoing-2 << HTTP/1.1 301 Redirect 2014-05-14 16:33:27,885 DEBUG - http-outgoing-2 << Date: Wed, 14 May 2014 23:33:27 GMT 2014-05-14 16:33:27,885 DEBUG - http-outgoing-2 << Connection: close 2014-05-14 16:33:27,885 DEBUG - http-outgoing-2 << Via: http/1.1 ir5.fp.bf1.yahoo.com (ApacheTrafficServer/4.0.2) 2014-05-14 16:33:27,885 DEBUG - http-outgoing-2 << Server: ATS 2014-05-14 16:33:27,885 DEBUG - http-outgoing-2 << Cache-Control: no-store 2014-05-14 16:33:27,885 DEBUG - http-outgoing-2 << Content-Type: text/html; charset=utf-8 2014-05-14 16:33:27,885 DEBUG - http-outgoing-2 << Content-Language: en 2014-05-14 16:33:27,885 DEBUG - http-outgoing-2 << Location: https://www.yahoo.com/ 2014-05-14 16:33:27,885 DEBUG - http-outgoing-2 << Content-Length: 213 2014-05-14 16:33:27,886 DEBUG - Resetting target auth state 2014-05-14 16:33:27,886 DEBUG - Redirecting to 'https://www.yahoo.com/' via {s}->https://www.yahoo.com:443 2014-05-14 16:33:27,886 DEBUG - http-outgoing-2: Shutdown connection 2014-05-14 16:33:27,886 DEBUG - Connection discarded 2014-05-14 16:33:27,886 DEBUG - http-outgoing-2: Close connection 2014-05-14 16:33:27,886 DEBUG - Connection released: [id: 2][route: {}->http://yahoo.com:80][total kept alive: 0; route allocated: 0 of 1; total allocated: 1 of 20] 2014-05-14 16:33:27,886 DEBUG - CookieSpec selected: best-match 2014-05-14 16:33:27,886 DEBUG - Auth cache not set in the context 2014-05-14 16:33:27,886 DEBUG - Connection request: [route: {s}->https://www.yahoo.com:443][total kept alive: 0; route allocated: 1 of 1; total allocated: 1 of 20] 2014-05-14 16:33:31,300 DEBUG - Closing expired connections 2014-05-14 16:33:31,300 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:31,349 DEBUG - Closing expired connections 2014-05-14 16:33:31,349 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:31,357 DEBUG - Closing expired connections 2014-05-14 16:33:31,357 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:36,302 DEBUG - Closing expired connections 2014-05-14 16:33:36,303 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:36,351 DEBUG - Closing expired connections 2014-05-14 16:33:36,351 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:36,359 DEBUG - Closing expired connections 2014-05-14 16:33:36,359 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:40,878 DEBUG - CookieSpec selected: best-match 2014-05-14 16:33:40,878 DEBUG - Auth cache not set in the context 2014-05-14 16:33:40,878 DEBUG - Connection request: [route: {}->http://yahoo.com:80][total kept alive: 0; route allocated: 0 of 1; total allocated: 1 of 20] 2014-05-14 16:33:40,878 DEBUG - Connection leased: [id: 3][route: {}->http://yahoo.com:80][total kept alive: 0; route allocated: 1 of 1; total allocated: 2 of 20] 2014-05-14 16:33:40,878 DEBUG - Opening connection {}->http://yahoo.com:80 2014-05-14 16:33:40,879 DEBUG - Connecting to yahoo.com/98.139.183.24:80 2014-05-14 16:33:40,948 DEBUG - Connection established 10.72.122.42:43997<->98.139.183.24:80 2014-05-14 16:33:40,948 DEBUG - Executing request GET / HTTP/1.1 2014-05-14 16:33:40,948 DEBUG - Target auth state: UNCHALLENGED 2014-05-14 16:33:40,948 DEBUG - Proxy auth state: UNCHALLENGED 2014-05-14 16:33:40,949 DEBUG - http-outgoing-3 >> GET / HTTP/1.1 2014-05-14 16:33:40,949 DEBUG - http-outgoing-3 >> Host: yahoo.com 2014-05-14 16:33:40,949 DEBUG - http-outgoing-3 >> Connection: Keep-Alive 2014-05-14 16:33:40,949 DEBUG - http-outgoing-3 >> Accept-Encoding: gzip,deflate 2014-05-14 16:33:40,949 DEBUG - http-outgoing-3 >> "GET / HTTP/1.1[\r][\n]" 2014-05-14 16:33:40,949 DEBUG - http-outgoing-3 >> "Host: yahoo.com[\r][\n]" 2014-05-14 16:33:40,949 DEBUG - http-outgoing-3 >> "Connection: Keep-Alive[\r][\n]" 2014-05-14 16:33:40,949 DEBUG - http-outgoing-3 >> "Accept-Encoding: gzip,deflate[\r][\n]" 2014-05-14 16:33:40,949 DEBUG - http-outgoing-3 >> "[\r][\n]" 2014-05-14 16:33:41,018 DEBUG - http-outgoing-3 << "HTTP/1.1 301 Redirect[\r][\n]" 2014-05-14 16:33:41,018 DEBUG - http-outgoing-3 << "Date: Wed, 14 May 2014 23:33:40 GMT[\r][\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "Connection: close[\r][\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "Via: http/1.1 ir3.fp.bf1.yahoo.com (ApacheTrafficServer/4.0.2)[\r][\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "Server: ATS[\r][\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "Cache-Control: no-store[\r][\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "Content-Type: text/html; charset=utf-8[\r][\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "Content-Language: en[\r][\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "Location: https://www.yahoo.com/[\r][\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "Content-Length: 213[\r][\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "[\r][\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "<HTML>[\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "<HEAD>[\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "<TITLE>Error</TITLE>[\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "</HEAD>[\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "[\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "<BODY BGCOLOR="white" FGCOLOR="black">[\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "<H1>Error</H1>[\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "<HR>[\n]" 2014-05-14 16:33:41,019 DEBUG - http-outgoing-3 << "[\n]" 2014-05-14 16:33:41,020 DEBUG - http-outgoing-3 << "<FONT FACE="Helvetica,Arial"><B>[\n]" 2014-05-14 16:33:41,020 DEBUG - http-outgoing-3 << "Description: Could not process this "GET" request.[\n]" 2014-05-14 16:33:41,020 DEBUG - http-outgoing-3 << "</B></FONT>[\n]" 2014-05-14 16:33:41,020 DEBUG - http-outgoing-3 << "<HR>[\n]" 2014-05-14 16:33:41,020 DEBUG - http-outgoing-3 << "</BODY>[\n]" 2014-05-14 16:33:41,020 DEBUG - http-outgoing-3 << HTTP/1.1 301 Redirect 2014-05-14 16:33:41,020 DEBUG - http-outgoing-3 << Date: Wed, 14 May 2014 23:33:40 GMT 2014-05-14 16:33:41,020 DEBUG - http-outgoing-3 << Connection: close 2014-05-14 16:33:41,020 DEBUG - http-outgoing-3 << Via: http/1.1 ir3.fp.bf1.yahoo.com (ApacheTrafficServer/4.0.2) 2014-05-14 16:33:41,020 DEBUG - http-outgoing-3 << Server: ATS 2014-05-14 16:33:41,020 DEBUG - http-outgoing-3 << Cache-Control: no-store 2014-05-14 16:33:41,020 DEBUG - http-outgoing-3 << Content-Type: text/html; charset=utf-8 2014-05-14 16:33:41,020 DEBUG - http-outgoing-3 << Content-Language: en 2014-05-14 16:33:41,020 DEBUG - http-outgoing-3 << Location: https://www.yahoo.com/ 2014-05-14 16:33:41,021 DEBUG - http-outgoing-3 << Content-Length: 213 2014-05-14 16:33:41,021 DEBUG - Resetting target auth state 2014-05-14 16:33:41,021 DEBUG - Redirecting to 'https://www.yahoo.com/' via {s}->https://www.yahoo.com:443 2014-05-14 16:33:41,021 DEBUG - http-outgoing-3: Shutdown connection 2014-05-14 16:33:41,021 DEBUG - Connection discarded 2014-05-14 16:33:41,021 DEBUG - http-outgoing-3: Close connection 2014-05-14 16:33:41,021 DEBUG - Connection released: [id: 3][route: {}->http://yahoo.com:80][total kept alive: 0; route allocated: 0 of 1; total allocated: 1 of 20] 2014-05-14 16:33:41,021 DEBUG - CookieSpec selected: best-match 2014-05-14 16:33:41,022 DEBUG - Auth cache not set in the context 2014-05-14 16:33:41,022 DEBUG - Connection request: [route: {s}->https://www.yahoo.com:443][total kept alive: 0; route allocated: 1 of 1; total allocated: 1 of 20] 2014-05-14 16:33:41,305 DEBUG - Closing expired connections 2014-05-14 16:33:41,305 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:41,353 DEBUG - Closing expired connections 2014-05-14 16:33:41,354 DEBUG - Closing connections idle longer than 5 SECONDS 2014-05-14 16:33:41,361 DEBUG - Closing expired connections 2014-05-14 16:33:41,362 DEBUG - Closing connections idle longer than 5 SECONDS PASSED: testTwo FAILED: testTwo org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool
--------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org