jira-importer opened a new issue, #924:
URL: https://github.com/apache/httpcomponents-core/issues/924

   **[Gabriel 
Klein](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=nuage)** 
opened 
**[HTTPCORE-12](https://issues.apache.org/jira/browse/HTTPCORE-12?redirect=false)**
 and commented
   
   In code
   
http://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/trunk/module-main/src/examples/org/apache/http/examples/ElementalHttpGet.java
   and
   
http://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/trunk/module-main/src/examples/org/apache/http/examples/ElementalHttpPost.java
   
   You have
   {
   .....
   if (!connStrategy.keepAlive(response, context)) {
   conn.close();
   } else {
   System.out.println("Connection kept alive...");
   }
   }
   } finally {
   conn.close();
   }
   
   The problem is that "conn.close();" is called everytime... even if you 
"System.out.println("Connection kept alive...");".
   
   
   ---
   No further details from 
[HTTPCORE-12](https://issues.apache.org/jira/browse/HTTPCORE-12?redirect=false)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to