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

   **[Patrick 
Moore](https://issues.apache.org/jira/secure/[email protected])**
 opened 
**[HTTPCORE-205](https://issues.apache.org/jira/browse/HTTPCORE-205?redirect=false)**
 and commented
   
   AbstractMultiworkerIOReactor may take some time getting ready ( needs to 
start threads for example ). In order to ensure that it is ready before 
starting to send requests, a CountDownLatch is needed.
   
   This is important for our test suites which are launch the reactor and then 
immediately trying to hit it. ( and failing )
   
       for (int i = 0; i < this.workerCount; i++) {
           if (this.status != IOReactorStatus.ACTIVE) {
               return;
           }
           this.threads[i].start();
       }
   
   LINE 303: this.countDownLatch.countDown(); <<<<<<<           
   for (;;) {
   int readyCount;
   try {
   readyCount = this.selector.select(this.selectTimeout);
   } catch (InterruptedIOException ex) {
   throw ex;
   } catch (IOException ex) {
   throw new IOReactorException("Unexpected selector failure", ex);
   }
   
   
   ---
   
   **Affects:** 4.0.1
   
   **Attachments:**
   - 
[AbstractMultiworkerIOReactor.patch](https://issues.apache.org/jira/secure/attachment/12418664/AbstractMultiworkerIOReactor.patch)
 (_4.14 kB_)
   


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