Skip to content

Commit

Permalink
Reinstate abortOnCancel in JettyClientHttpRequest
Browse files Browse the repository at this point in the history
This commit reinstates abortOnCancel in the ReactiveRequest builder,
which allows a cancel signal to abort the request.

See spring-projectsgh-26287 and spring-projectsgh-27112
  • Loading branch information
poutsma authored and lxbzmy committed Mar 26, 2022
1 parent 04740b0 commit 805385f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -58,7 +58,7 @@ class JettyClientHttpRequest extends AbstractClientHttpRequest {
public JettyClientHttpRequest(Request jettyRequest, DataBufferFactory bufferFactory) {
this.jettyRequest = jettyRequest;
this.bufferFactory = bufferFactory;
this.builder = ReactiveRequest.newBuilder(this.jettyRequest);
this.builder = ReactiveRequest.newBuilder(this.jettyRequest).abortOnCancel(true);
}


Expand Down

0 comments on commit 805385f

Please sign in to comment.