-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[JetBrains] improve handling of client connection termination #20288
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
Conversation
...rains/gateway-plugin/src/main/kotlin/io/gitpod/jetbrains/gateway/GitpodConnectionProvider.kt
Outdated
Show resolved
Hide resolved
connectionLifetime.terminate() | ||
GlobalScope.launch { | ||
// Delay for 5 seconds to wait the thinClient actually close | ||
delay(5000) |
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.
how do we know 5secs is enough, is there a triggere to which we can reliable bind instead?
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.
921131c
to
6c1488e
Compare
@iQQBot could you please help test this PR 🙏 ? Here's the context of recent change:
You could consider the screenshot below as 'connection provider' and you could check also this Loom ![]() |
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.
Description
Related Issue(s)
Fixes ENT-804
How to test
Smoke test Gitpod Gateway Plugin
gp timeout set 1m
Connection Closed by Gateway: Restart the connect via JetBrains Gateway
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