Commit b7ec53c
authored
fix unspecified dynamic client watch timeout (#320)
Currently, when a dynamic client watcher is used, timeout_seconds is
always passed to watcher.stream() from DynamicClient.watch(). Its value
is None when the timeout argument was not passed by the user.
The current check done on TimeoutError in the Watch.watch() method when
awaiting from self.resp.content.readline() prevents to reopen the
request in this case because it behaves differently if timeout_seconds
was set to None or if timeout_seconds was not passed to the function.
Do not pass the timeout_seconds argument in DynamicClient.watch() if
timeout was not specified by the user.
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>1 parent 03f4dd8 commit b7ec53c
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
217 | 221 | | |
218 | 222 | | |
219 | 223 | | |
220 | 224 | | |
221 | 225 | | |
222 | 226 | | |
223 | 227 | | |
224 | | - | |
| 228 | + | |
225 | 229 | | |
226 | 230 | | |
227 | 231 | | |
| |||
0 commit comments