Skip to content

Commit c9e4daf

Browse files
kblokMeir017
authored andcommitted
Force KeepAliveInterval to 0 (#638)
1 parent f6c6776 commit c9e4daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/PuppeteerSharp/Connection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ private void ProcessResponse(string response)
287287
public static readonly Func<Uri, IConnectionOptions, CancellationToken, Task<WebSocket>> DefaultWebSocketFactory = async (uri, options, cancellationToken) =>
288288
{
289289
var result = new ClientWebSocket();
290-
// result.Options.KeepAliveInterval = TimeSpan.FromMilliseconds(options.KeepAliveInterval);
290+
result.Options.KeepAliveInterval = TimeSpan.Zero;
291291
await result.ConnectAsync(uri, cancellationToken).ConfigureAwait(false);
292292
return result;
293293
};

0 commit comments

Comments
 (0)