HttpComponents HttpCore
  1. HttpComponents HttpCore
  2. HTTPCORE-190

ChunkedInputStream does not handle sockets with timeouts

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1-alpha1
    • Component/s: None
    • Labels:
      None

      Description

      ChunkedInputStream does not handle socket timeouts when reading data. If a socket timeout is received after finishing reading a chunk (including it's CRLF combination) and before reading the next chunk's length, the next call to read will attempt to re-read the CRLF, causing an IOException with the message "CRLF expected at end of chunk" to be thrown. I have only tested this with 3.0 but it doesn't appear to be fixed in 3.1 or any 4.0 from looking at the code.

      1. HTTPCLIENT-829.patch
        2 kB
        Adam Bryzak
      2. HttpClient_829.java
        4 kB
        Adam Bryzak

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Adam Bryzak
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development