Skip to content

Commit 9382889

Browse files
author
Bjarte Skogøy
committed
- Set reader quotas to max value. Any reason not to?
1 parent 7dd065e commit 9382889

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CefSharp/Internals/BrowserProcessServiceHost.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ public static CustomBinding CreateBinding()
7575
binding.SendTimeout = TimeSpan.MaxValue;
7676
binding.OpenTimeout = TimeSpan.MaxValue;
7777
binding.CloseTimeout = TimeSpan.MaxValue;
78+
binding.ReaderQuotas.MaxStringContentLength = int.MaxValue;
79+
binding.ReaderQuotas.MaxArrayLength = int.MaxValue;
80+
binding.ReaderQuotas.MaxDepth = int.MaxValue;
7881

7982
// Ensure binding connection stays open indefinitely until closed
8083
var customBinding = new CustomBinding(binding);

0 commit comments

Comments
 (0)