You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit introduces:
1. Cleanups in port-forwarding error handling code, which ensures that
we only compare lowercased text always.
2. E2E verifying that when a pod is removed a port-forward is stopped.
Signed-off-by: Maciej Szulik <[email protected]>
Kubernetes-commit: 0b1617ccefbc6ea61c0e7c2b0b4052703f11c51c
reset dataStream to discard any unsent data, preventing port forwarding from being blocked.
411
-
we must reset dataStream before waiting on errorChan, otherwise, the blocking data will affect errorStream and cause <-errorChan to block indefinitely.
412
-
*/
415
+
416
+
// reset dataStream to discard any unsent data, preventing port forwarding from being blocked.
417
+
// we must reset dataStream before waiting on errorChan, otherwise,
418
+
// the blocking data will affect errorStream and cause <-errorChan to block indefinitely.
413
419
_=dataStream.Reset()
414
420
415
421
// always expect something on errorChan (it may be nil)
0 commit comments