Skip to content

Commit e28a31e

Browse files
committed
Merge pull request #612 from bjarteskogoy/fix/bindingDictionarySize
Set reader quotas to max value. Any reason not to?
2 parents 2344e8b + 1b38890 commit e28a31e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CefSharp/Internals/BrowserProcessServiceHost.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ public static CustomBinding CreateBinding()
104104
binding.SendTimeout = TimeSpan.MaxValue;
105105
binding.OpenTimeout = TimeSpan.MaxValue;
106106
binding.CloseTimeout = TimeSpan.MaxValue;
107+
binding.ReaderQuotas.MaxStringContentLength = int.MaxValue;
108+
binding.ReaderQuotas.MaxArrayLength = int.MaxValue;
109+
binding.ReaderQuotas.MaxDepth = int.MaxValue;
110+
binding.ReaderQuotas.MaxNameTableCharCount = int.MaxValue;
111+
binding.ReaderQuotas.MaxBytesPerRead = int.MaxValue;
107112

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

0 commit comments

Comments
 (0)