Closed germanparente closed 3 years ago
Hi @germanparente
Sorry for the late response, I was off on PTO.
Great catch. I dont understand though, why okClient.newWebSocket(request, adapter)
would cause the obviously existing websocket to close. I'm missing the context. My guess is that you're executing on different pods and close each pod before you execute on another one? Can you please enlighten me?
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen
.
Mark the issue as fresh by commenting /remove-lifecycle rotten
.
Exclude this issue from closing again by commenting /lifecycle frozen
.
/close
@openshift-bot: Closing this issue.
exception found in:
seems that this exception can be found in PodExec.java:
okhttp3.OkHttpClient.newWebSocket (before "return adapter")
a developer has shared these notes:
I have my own MyPodExec.java based on (PodExec.java). I have changed stop method to include: this.call.close(1000, "Client asking to stop."); instead of this.call.cancel(); originally from PodExec.java
I added this changed based on similar existing adapter PodLogListenerAdapter from PodLogRetrievalAsync.java:
Now, after executing command on Pods and making sure the pod is closed before executing it, I stop iStoppable.stop() so the websocket is totally closed. So it was not really a response.body().close() but the websocket what was causing the issue.
That could be a way to fix this issue.