]> Cypherpunks repositories - gostls13.git/commit
net/http: increase panic stack trace buffer size from 4 KB to 64 KB.
authorDavid Symonds <dsymonds@golang.org>
Thu, 13 Feb 2014 23:15:38 +0000 (10:15 +1100)
committerDavid Symonds <dsymonds@golang.org>
Thu, 13 Feb 2014 23:15:38 +0000 (10:15 +1100)
commit645a341b7d4210eece285c8dbe6e3e6cdbfbe35e
treeb81036658cacfa110c8c453a24a6bcd2e8fc67d3
parent9abe6d9dd0ee46b696f8c261417444777af19f6e
net/http: increase panic stack trace buffer size from 4 KB to 64 KB.

4 KB is a bit too small in some situations (e.g. panic during a
template execution), and ends up with an unhelpfully-truncated trace.
64 KB should be much more likely to capture the useful information.
There's not a garbage generation issue, since this code should only
be triggered when there's something seriously wrong with the program.

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/63520043
src/pkg/net/http/server.go