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

   **[Patrick 
Moore](https://issues.apache.org/jira/secure/[email protected])**
 opened 
**[HTTPCORE-163](https://issues.apache.org/jira/browse/HTTPCORE-163?redirect=false)**
 and commented
   
   org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute() has 
try{}finally construct that hides the real problem.
   
   at about line 145:
   
   try {
   for (;;) {
   int readyCount;
   ....
   }
   } catch (ClosedSelectorException ex) {
   } finally {
   // Shutdown
   try {
   doShutdown();
   } catch (IOException ex) {
   throw new IOReactorException(ex.getMessage(), ex);
   }
   }
   
   should really be:
   
   boolean success = false;
   try {
   for (;;) {
   int readyCount;
   ....
   }
   success = true;
   } catch (ClosedSelectorException ex) {
   success = true;
   } finally {
   // Shutdown
   try {
   doShutdown();
   } catch (IOException ex) {
   if ( success)  {
   throw new IOReactorException(ex.getMessage(), ex);
   }
   }
   }
   
   
   
   ---
   
   **Affects:** 4.0-beta2
   


-- 
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