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. SSLIOSession.diff
        0.7 kB
        Dmitry
      2. SSLClientIOEventDispatch.diff
        2 kB
        Dmitry

        Activity

          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