Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-2289

limit the SavedRequest's buffer allocation to the request length if known

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • 2.3.7.SP1
    • Servlet
    • None

    Description

      SavedRequest eagerly allocates the data buffer to the configured max. That can allow for unnecessary garbage allocation to heap for small content length POSTs, particularly if max-buffered-request-size is increased.

      It'd be best to size the buffer to the request content length if known.

      Attachments

        Activity

          People

            flaviarnn Flavia Rainone
            rhn-support-aogburn Aaron Ogburn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: