Skip to content

Commit 7f7b5b8

Browse files
shawkinsmanusa
authored andcommitted
fix #5189: adding missing log if there is a close exception
1 parent 3ad77ee commit 7f7b5b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

httpclient-jdk/src/main/java/io/fabric8/kubernetes/client/jdkhttp/JdkWebSocketImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ public synchronized boolean sendClose(int code, String reason) {
126126
CompletableFuture<java.net.http.WebSocket> cf = webSocket.sendClose(code, reason == null ? "Closing" : reason);
127127
cf = cf.whenComplete((w, t) -> {
128128
if (t != null) {
129+
LOG.warn("Queued close did not succeed", t);
129130
abort();
130131
} else if (w != null) {
131132
webSocket.request(1); // there may not be demand, so request more

0 commit comments

Comments
 (0)