Skip to content

Commit

Permalink
Comment about http buffer size.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed Aug 9, 2013
1 parent b6e82ff commit 00b459a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00b459a

Please sign in to comment.