Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14069

netty4-http - Add logic to handle http 100-Continue

    XMLWordPrintableJSON

    Details

    • Estimated Complexity:
      Unknown

      Description

      When using netty4-http as a client we have a problem when the server side answers with a http 100-Continue. We expected the client to handle that internally and continue the call but it's actually returning http 100.

      This is handled by Nettys own channel handlers but since the Camel HttpClientChannelHandler/ClientChannelHandler stop waiting when a http 100-Continue arrives it doesn't help.

      In the project I'm working with we made a custom ClientInitilizer and made some small changes in the HttpClientChannelHandler and ClientChannelHandler that just "ignores" the http 100-Continue when it arrives to solve this issue.

      See the attached files to see our solution

       

        Attachments

        1. ClientChannelHandler.java
          10 kB
          Göran Erkstam
        2. HttpClientChannelHandler.java
          2 kB
          Göran Erkstam

          Activity

            People

            • Assignee:
              zhfeng Zheng Feng
              Reporter:
              urken Göran Erkstam
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m