Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2858

Enable header field case insensitive match in THttpServer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.1, 0.9.2
    • Fix Version/s: 0.9.3
    • Component/s: C++ - Library
    • Labels:
    • Environment:

      ubuntu 14.04 LTS
      gcc 4.8

    • Patch Info:
      Patch Available

      Description

      Communications between THttpServer in cpp lib and nodejs http client caused unexpected ECONNRESET. This was caused by nodejs client setting "Content-length" instead of "Content-Length" in the header field, causing THttpServer to terminate the request prematurely.

      Per HTTP specification, header field name is case insensitive, therefore this patch used case insensitive match to identify "Content-Length" field.

        Attachments

          Activity

            People

            • Assignee:
              roger Roger Meier
              Reporter:
              yihungjen YI-HUNG JEN
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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