Skip to content

Commit 51ad9e7

Browse files
authored
Extend keepAlive (#1272)
1 parent 2037ec2 commit 51ad9e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dwds/lib/dwds.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class Dwds {
128128
// Allow for clients to reconnect in a short window. Making the
129129
// window too long may cause issues if the user closes a debug
130130
// session and initites a new one during the keepAlive window.
131-
keepAlive: const Duration(seconds: 2)))
131+
keepAlive: const Duration(seconds: 5)))
132132
: WebSocketSocketHandler();
133133

134134
extensionBackend = await ExtensionBackend.start(handler, hostname);

dwds/lib/src/services/debug_service.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class DebugService {
232232
// DDS will always connect to DWDS via web sockets.
233233
if (useSse && !spawnDds) {
234234
var sseHandler = SseHandler(Uri.parse('/$authToken/\$debugHandler'),
235-
keepAlive: const Duration(seconds: 2));
235+
keepAlive: const Duration(seconds: 5));
236236
handler = sseHandler.handler;
237237
unawaited(_handleSseConnections(
238238
sseHandler, chromeProxyService, serviceExtensionRegistry,

0 commit comments

Comments
 (0)