From f0c8132f71b056e0104f314dc27efa6b113952a8 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Fri, 20 Aug 2021 12:51:34 +0200 Subject: [PATCH] Interfaces/GraphQL: Increase Cookie Size to 32k --- Modules.Interfaces/GraphQLInterface.vb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Modules.Interfaces/GraphQLInterface.vb b/Modules.Interfaces/GraphQLInterface.vb index 64f52681..ecbc59ab 100644 --- a/Modules.Interfaces/GraphQLInterface.vb +++ b/Modules.Interfaces/GraphQLInterface.vb @@ -15,6 +15,10 @@ Public Class GraphQLInterface Private _cookieJar As CookieContainer Private _Encoding As New UTF8Encoding + Private Const MAX_COOKIE_SIZE As Integer = 32768 + Private Const MAX_COOKIE_COUNT As Integer = 300 + Private Const MAX_COOKIE_COUNT_PER_DOMAIN As Integer = 20 + Public Property Proxy As WebProxy Public Property Credentials As NetworkCredential @@ -141,7 +145,7 @@ Public Class GraphQLInterface Private Function GetCookies() As CookieContainer If _cookieJar Is Nothing Then - _cookieJar = New CookieContainer(300, 20, 16384) + _cookieJar = New CookieContainer(MAX_COOKIE_COUNT, MAX_COOKIE_COUNT_PER_DOMAIN, MAX_COOKIE_SIZE) End If Return _cookieJar