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

Consider segmenting large writes for the out of order response check

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Feedback Received
    • 5.0.1
    • None
    • HttpCore
    • None

    Description

      The blocking client checks for an out-of-order response every 8kb, however content-length requests may write large buffers that aren't chunked before being written to the socket, allowing them to bypass this protection.
      Should the OutputStream which checks for early responses also split large writes in order to check more frequently?

      Note that I don't think chunked encoding is impacted due the the (default) 2 KiB chunk size.

      Fixing this may prevent socket exceptions, but could come at a slight performance cost due to more frequent 1ms reads.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ckozak Carter Kozak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: