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

ChunkedInputStream does not handle sockets with timeouts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0
    • 4.1-alpha1
    • None
    • 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.

      Attachments

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

        Issue Links

          Activity

            People

              Unassigned Unassigned
              abryzak Adam Bryzak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: