spring-projects / spring-projects/spring-boot

Expose Tomcat response output stream buffer size as a configuration property

Open
#49,323 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

status: blocked type: enhancement
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

Description

After some recent changes in Spring MVC (7.0.6) Tomcat will write the content-length header for us if we write a response body that fits in its output stream buffer. The default size is 8192 bytes, which is completely arbitrary, and some applications (where they often return JSON results slightly larger than that, for instance) would benefit from being able to change the value.

Jetty behaves the same way, and it probably has the same opportunity to configure the buffer size.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating Spring MVC's response handling and the Tomcat output stream buffer configuration, then check whether the corresponding Jetty behavior is exposed similarly. Done means applications can configure the response output stream buffer size and the behavior works for response bodies near or above the default 8192-byte threshold.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.