-
-
Notifications
You must be signed in to change notification settings - Fork 366
Description
Current and expected behavior
Under network errors, using our default config.read_timeout (which we explicitly set using our defaults) can make certain error cases slow to recover due to them having to wait the full long-poll recovery period before erroring out. This full 290s time was never intended as recovery period for normal GET requests and confuses users + causes suboptimal recovery behavior.
Examples of confused users (closed those in favor of this):
Maybe there's something better we can do with timeouts that doesn't by default, propagate this timeout to all calls.
In particular we do populate default watch parameters to 290s separately, even though this is by default unset.
Possible solution
Maybe we can rely on the server side default timeout in WatchParams::default and maybe we can shift our config.read_timeout to something that does not apply to watches.
This would be confusing unless we also changed the name though (because we cannot change the functionality this radically while not making the user think about the explicit choice they have made).
Affected crates
kube-client, kube-core
Would you like to work on fixing this bug?
maybe