From 00b459ad0eb2a6095e4415148e66f06619a07f67 Mon Sep 17 00:00:00 2001 From: Chen Yufei Date: Fri, 9 Aug 2013 23:23:36 +0800 Subject: [PATCH] Comment about http buffer size. --- proxy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxy.go b/proxy.go index f85a872b..10e83c2f 100644 --- a/proxy.go +++ b/proxy.go @@ -22,6 +22,8 @@ import ( // http://www.mnot.net/blog/2011/07/11/what_proxies_must_do // "URIs should be allowed at least 8000 octets, and HTTP headers should have // 4000 as an absolute minimum". +// In practice, there are sites using cookies larger than 4096 bytes, +// e.g. www.fitbit.com. So set http buffer size to 8192 to be safe. const httpBufSize = 8192 // Hold at most 4MB memory as buffer for parsing http request/response and