Skip to content

Avoid duplicate flushes in HttpMessageConverter implementations #36383

@bclozel

Description

@bclozel

We noticed that a few implementations of the HttpMessageConverter, inheriting from abstract classes, are performing extra OutputStream#flush calls even though this is the responsibility of the abstract class after delegating to the writeInternal method.

We should remove those extra calls as they tend to waste resources for no added benefit.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions