oc doesn't time out watches on target server disappearing #11038
Labels
component/cli
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
priority/P2
oc watches don't handle target server disappearing ungracefully (e.g. power off).
Version
Steps To Reproduce
oc get pods -w
Current Result
oc client does not close
Notice that
netstat -anp|grep 8443
shows connection still established.Expected Result
oc client should close connections & report error (or potentially reconnect transparently).
Additional Information
I assume this is because WS read timeouts are set to infinity. Would be better to implement WS ping (I've confirmed API server handles this properly) & set a reasonable read timeout.
The text was updated successfully, but these errors were encountered: