Skip to content

WebClient retrieve() does not handle Void.class as recommended [SPR-16636] #21177

@spring-projects-issues

Description

@spring-projects-issues

Mykola Varahash opened SPR-16636 and commented

Currently, when user tries to consume response body content in the following way:

WebClient client = ...;
Mono<Void> result = client.get().retrieve().bodyToMono(Void.class);
result.block();

and a response actually contains body content, then the underlying http connection will not be closed and returned to connections pool.


Affects: 5.0.4

Issue Links:

Referenced from: commits 729d0d2, e28a995

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions