Skip to content

Commit 5120063

Browse files
committed
WIP
1 parent 487c051 commit 5120063

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/src/main/java/io/grpc/internal/GrpcUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,7 @@ public static boolean getFlag(String envVarName, boolean enableByDefault) {
972972
}
973973
}
974974

975+
975976
/**
976977
* Marker to be used in {@link Status#withCause(Throwable)} to signal that stream should be closed
977978
* by sending headers.

core/src/main/java/io/grpc/internal/ServerCallImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ private void messagesAvailableInternal(final MessageProducer producer) {
341341
e.getStatus().withCause(GrpcUtil.CLOSE_WITH_HEADERS), null));
342342
return;
343343
}
344+
message.close();
344345
listener.onMessage(parsed);
345346
}
346347
} catch (Throwable t) {

0 commit comments

Comments
 (0)