add a (high) limit to the number of header lines we're willing to keep in
memory for rewriting purposes, this will prevent sessions from sending an
insanely large number of continuations to a single header and starve us.
Merge branch 'master' into portable