Skip to content

DefaultPartHttpMessageReader should not instantiate Reactor Scheduler eagerly #33218

Closed
@rstoyanchev

Description

@rstoyanchev

A Spring for GraphQL application may initialize and use a CodecConfigurer for small (de)-serialization needs such as turning pagination cursors to a string, usually via JSON. This is done via codecs for both Spring MVC and WebFlux as the transport to keep the configuration model .

This works fine except when CodecConfigurer is created, DefaultPartHttpMessageConverter creates a newBounded scheduler at constructor time, which can be surprising, and in this scenario no multipart reading will be done. We can initializer the scheduler lazily at runtime.

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