Skip to content

Commit

Permalink
Fix timeout on watch.js requestOptions
Browse files Browse the repository at this point in the history
The watching of Kubernetes object stops after 60 seconds - as the default timeout of 60 seconds is used.
It should be set to 0 - so infinite or at least be more configureable.

Using the RequestInterface to configure this is not the best option as in line 70 the request options gets applied to the config but not taken from any passed configuration.

Also the forever flag could be set.
  • Loading branch information
jhagestedt committed Oct 15, 2020
1 parent 906d227 commit 1b313ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export class Watch {
uri: url,
useQuerystring: true,
json: true,
forever: true,
timeout: 0,
};
await this.config.applyToRequest(requestOptions);

Expand Down

0 comments on commit 1b313ce

Please sign in to comment.