HttpComponents HttpCore
  1. HttpComponents HttpCore
  2. HTTPCORE-236

Failed to receive last chunk of the large https response through httpcore-nio

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 4.1-beta2
    • Fix Version/s: 4.1
    • Component/s: HttpCore NIO
    • Labels:
      None
    • Environment:
      java 1.6_06 windows xp, linux redhat.

      Description

      I'm a wso2 esb (synapse) user/developer.
      I got a problem with https nio transport.
      I tried versions 4.1 alpha1 and 4.1 beta2.

      The problem:
      transport failed to receive large (50k) response through nio https.
      The connection is keep-alive and chunked. Every time I received only response divisible
      by 8192 and last chunk is never returned.

      After digging the logs and code I found that last chunk not returned because
      of the code in this class org.apache.http.impl.nio.reactor.SSLIOSession.java

      I changed one line in the code and now it's working.
      Now I want to ask somebody who knows the code if this change is ok,
      and maybe it should be applied to httpcore (see attached file)

      1. SSLClientIOEventDispatch.diff
        2 kB
        Dmitry
      2. SSLIOSession.diff
        0.7 kB
        Dmitry

        Activity

        Dmitry created issue -
        Dmitry made changes -
        Field Original Value New Value
        Attachment SSLIOSession.diff [ 12455600 ]
        Oleg Kalnichevski made changes -
        Fix Version/s 4.1 [ 12313548 ]
        Oleg Kalnichevski made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Dmitry made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Dmitry made changes -
        Attachment SSLClientIOEventDispatch.diff [ 12455660 ]
        Oleg Kalnichevski made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Oleg Kalnichevski made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Dmitry
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 120h
              120h
              Remaining:
              Remaining Estimate - 120h
              120h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development