Skip to content

Fix potential leaks from Mono.just(dataBuffer) or Flux.just(dataBuffer) [SPR-17575] #22107

Closed
@spring-projects-issues

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-17575

When using Mono.just or Flux.just data buffers can be allocated before subscription and consequently won't even see a cancellation signal in case the connection is closed.

The second issue is that if Mono.just or Flux.just is passed into response#writeWith those will not see a cancellation signal because cancellation is not propagated to them (i.e. can't cancel what's already been materialized).


Affects: 5.1.3

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions