Skip to content

Extend keepAlive #1272

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

Merged
merged 1 commit into from
Mar 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dwds/lib/dwds.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class Dwds {
// Allow for clients to reconnect in a short window. Making the
// window too long may cause issues if the user closes a debug
// session and initites a new one during the keepAlive window.
keepAlive: const Duration(seconds: 2)))
keepAlive: const Duration(seconds: 5)))
: WebSocketSocketHandler();

extensionBackend = await ExtensionBackend.start(handler, hostname);
Expand Down
2 changes: 1 addition & 1 deletion dwds/lib/src/services/debug_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class DebugService {
// DDS will always connect to DWDS via web sockets.
if (useSse && !spawnDds) {
var sseHandler = SseHandler(Uri.parse('/$authToken/\$debugHandler'),
keepAlive: const Duration(seconds: 2));
keepAlive: const Duration(seconds: 5));
handler = sseHandler.handler;
unawaited(_handleSseConnections(
sseHandler, chromeProxyService, serviceExtensionRegistry,
Expand Down