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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 4.1-beta2
    • 4.1
    • HttpCore NIO
    • None
    • 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)

      Attachments

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

        Activity

          People

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