From 65b4420e0063612b26dc16c6f4fc12c059b6618e Mon Sep 17 00:00:00 2001 From: Gary Roumanis Date: Fri, 12 Mar 2021 12:01:16 -0800 Subject: [PATCH] Extend keepAlive --- dwds/lib/dwds.dart | 2 +- dwds/lib/src/services/debug_service.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dwds/lib/dwds.dart b/dwds/lib/dwds.dart index 7cd172dd8..b59cd89aa 100644 --- a/dwds/lib/dwds.dart +++ b/dwds/lib/dwds.dart @@ -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); diff --git a/dwds/lib/src/services/debug_service.dart b/dwds/lib/src/services/debug_service.dart index 1b3f48e78..133525fa8 100644 --- a/dwds/lib/src/services/debug_service.dart +++ b/dwds/lib/src/services/debug_service.dart @@ -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,