Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-370

Race condition if connection request succeeds and times out at the same time

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.3.1
    • 4.3.2
    • HttpCore NIO
    • None

    Description

      2014-01-11 01:09:07,225 ERROR [pool-3-thread-1] org.apache.http.impl.nio.client.InternalHttpAsyncClient - I/O reactor terminated abnormally
      org.apache.http.nio.reactor.IOReactorException: I/O dispatch worker terminated abnormally
      at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:356)
      at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:189)
      at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.doExecute(CloseableHttpAsyncClientBase.java:67)
      at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase.access$000(CloseableHttpAsyncClientBase.java:38)
      at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:57)
      at java.lang.Thread.run(Thread.java:724)
      Caused by: java.lang.IllegalStateException: Connection must be created by connection manager
      at org.apache.http.impl.nio.client.InternalIODispatch.createConnection(InternalIODispatch.java:48)
      at org.apache.http.impl.nio.client.InternalIODispatch.createConnection(InternalIODispatch.java:37)
      at org.apache.http.impl.nio.reactor.AbstractIODispatch.connected(AbstractIODispatch.java:71)
      at org.apache.http.impl.nio.reactor.BaseIOReactor.sessionCreated(BaseIOReactor.java:240)
      at org.apache.http.impl.nio.reactor.AbstractIOReactor.processNewChannels(AbstractIOReactor.java:426)
      at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:288)
      at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:105)
      at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:584)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jaikit jaikit savla
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: