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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated: