From 1d2b5fa55cd47746ad2da3479f0411baf83953eb Mon Sep 17 00:00:00 2001 From: amaitland Date: Mon, 20 Apr 2015 21:37:16 +1000 Subject: [PATCH] Up the WCF MaxRecieveMessageSize as per discussion in https://github.com/cefsharp/CefSharp/issues/958#issuecomment-94410222 It's now 128MB in line with the Chromium IPC --- CefSharp/Internals/BrowserProcessServiceHost.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CefSharp/Internals/BrowserProcessServiceHost.cs b/CefSharp/Internals/BrowserProcessServiceHost.cs index 9a456b07d..872f080a8 100644 --- a/CefSharp/Internals/BrowserProcessServiceHost.cs +++ b/CefSharp/Internals/BrowserProcessServiceHost.cs @@ -13,7 +13,7 @@ namespace CefSharp.Internals { public class BrowserProcessServiceHost : ServiceHost { - private const long SixteenMegaBytesInBytes = 16*1024*1024; + private const long OneHundredAndTwentyEightMegaBytesInBytes = 128*1024*1024; public JavascriptObjectRepository JavascriptObjectRepository { get; private set; } private TaskCompletionSource operationContextTaskCompletionSource = new TaskCompletionSource(); @@ -122,7 +122,7 @@ namespace CefSharp.Internals public static CustomBinding CreateBinding() { var binding = new NetNamedPipeBinding(NetNamedPipeSecurityMode.None); - binding.MaxReceivedMessageSize = SixteenMegaBytesInBytes; + binding.MaxReceivedMessageSize = OneHundredAndTwentyEightMegaBytesInBytes; binding.ReceiveTimeout = TimeSpan.MaxValue; binding.SendTimeout = TimeSpan.MaxValue; binding.OpenTimeout = TimeSpan.MaxValue;