-
Notifications
You must be signed in to change notification settings - Fork 558
Description
Describe the bug
With the version 1.0.0, when a watch
request is made and the connection drop, no more events are reported, but there is also no error that indicate that the connection was dropped. (I waited 10 minutes to be sure)
With version 0.22.2, under ~33s, I got the error read ETIMEDOUT
, allowing me to retry the connection and restart the watch request.
This issue was already raised on #559 and fixed with PR #630. This PR add a config to configure keepalive packets in watch.ts
, but I don't see this config on the version 1.0.0.
Client Version
1.0.0
(but working on 0.22.2)
Server Version
1.30.3
To Reproduce
In my case, I start the watch-example.ts
and then cut the VPN connection to my cluster. As it's related to network perturbation, it's not easy to suggest an easy reproducible way to do it. I guess you can also use your firewall to drop packets in the middle of a watch request.
Expected behavior
I expect an error to be thrown when the Kubernetes api becomes unavailable while a watch request is running like it was the case for previous versions.
** Example Code**
I used the watch-example.ts
Environment (please complete the following information):
- OS: Linux
- NodeJS Version 20.16.0