Skip to content

Conversation

@DanTup
Copy link
Contributor

@DanTup DanTup commented Aug 8, 2022

To fix Dart-Code/Dart-Code#3966 (which I think is also related to Dart-Code/Dart-Code#3964), we need the server to be able to ping a client to see whether it's still alive.

We previously used the clients SSE connection back to the server to know this, but since it has a 30 second timeout (to allow for reconnects if proxy drops it), we may end up assuming a client is still alive when the browser has been closed by the user.

This adds a ping method the server can call that just triggers a response that the server can use to verify a client is really active before doing something where it's critical we know for sure the client is still active.

There's server work to go with this, but it's in the SDK. We can't land that work until this method is available (and rolled into the SDK).

@DanTup DanTup merged commit f6e6682 into flutter:master Aug 8, 2022
@DanTup DanTup deleted the add-ping branch August 8, 2022 20:50
@DanTup
Copy link
Contributor Author

DanTup commented Sep 5, 2022

The "other half" of this change is at https://dart-review.googlesource.com/c/sdk/+/257581/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DevTools no longer opens in browser if a previous window was closed

2 participants