We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 858e0d2 commit 74d9e5aCopy full SHA for 74d9e5a
sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/HttpResponseFlowAdapter.java
@@ -40,7 +40,7 @@ public void onSubscribe(Flow.Subscription subscription) {
40
41
@Override
42
public void onNext(ByteBuffer byteBuffer) {
43
- if (this.httpServerResponse.closed()) {
+ if (this.httpServerResponse.ended()) {
44
cancelSubscription();
45
return;
46
}
@@ -87,8 +87,8 @@ private void endResponse() {
87
88
89
private void cancelSubscription() {
90
- LOG.trace("Cancelling subscription");
91
if (this.outputSubscription != null) {
+ LOG.trace("Cancelling subscription");
92
Flow.Subscription outputSubscription = this.outputSubscription;
93
this.outputSubscription = null;
94
outputSubscription.cancel();
0 commit comments