Skip to content

RestClient hangs when Destination closes Connection during Request Body Upload #34707

Open
@mspiess

Description

@mspiess

The client continues to block despite the receiving server having closed the connection already.
Reproduced on Spring Boot version 3.4.4
Works with 3.3.10, likely because that doesn't use io.projectreactor.netty:reactor-netty-http.
Sample application reproducing the bug: https://github.com/mspiess/http-client-bug-reproduction
Find the necessary steps in that repository's README.md.
Excuse the convoluted setup, but I have been unable to reproduce it outside of docker.

The deprecated exchangeTimeout on ReactorClientHttpRequestFactory can be used to force a timeout, but the connection is still leaked.
The other timeout options seem to have no effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)status: waiting-for-triageAn issue we've not yet triaged or decided on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions