-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[PAPI] Use "Timeout" for setting up a connectionTimeout #20176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PAPI] Use "Timeout" for setting up a connectionTimeout #20176
Conversation
for await (const response of factory({ | ||
signal: abort.signal, | ||
signal: AbortSignal.any([abort.signal, connectionTimeout.signal()!]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL learned about AbortSignal.any
, kind of made my day 😆
b056f95
to
0e40007
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
@geropl maybe we should get the |
0e40007
to
a4bcacf
Compare
/unhold |
Mostly tests and comments. I will make sure to merge them somewhere. |
* [PAPI] Retry steams upon not receiving data for 10 seconds * [PAPI] Retry steams upon not receiving data for 10 seconds (#20176) * debug message * Do not listen for ws updates globally and do not timeout for those calls * Timeout signal as a getter * use ff for disablement * accesor fn => getter * send empty initial data in papi for global ws watch requests --------- Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
Description
Related Issue(s)
Fixes #
How to test
Documentation
Preview status
gitpod:summary
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Saves cost. Untick this only if you're really sure you need a non-preemtible machine.
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold