Skip to content

Commit 127d178

Browse files
committed
flush stream after WebSocket handleMessage
1 parent d91be25 commit 127d178

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

util/src/main/java/io/kubernetes/client/util/WebSocketStreamHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ protected void handleMessage(int stream, InputStream inStream) throws IOExceptio
9494
try {
9595
OutputStream out = getSocketInputOutputStream(stream);
9696
ByteStreams.copy(inStream, out);
97+
out.flush();
9798
} finally {
9899
inStream.close();
99100
}

0 commit comments

Comments
 (0)