http: close connection after printing panic stack trace In a testing situation, it's possible for a local http server to panic and the test exit without the stack trace ever being printed. Fixes issue 2480.
http: close connection after printing panic stack trace
In a testing situation, it's possible for a local http
server to panic and the test exit without the stack trace
ever being printed.
Fixes issue 2480.

R=rsc, bradfitz
CC=golang-dev
http://codereview.appspot.com/5414048

Committer: Russ Cox <5ad239cb8a44f659eaaee0aa1ea5b94947abe557@golang.org>

scirelli/scirelli-go,sanjosh/sanjos100-tipc,webfd/go-zh,bryanxu/go-zh,bryanxu/go-zh,bryanxu/go-zh,webfd/go-zh,webfd/go-zh,Triskite/willstone-goclone,Triskite/willstone-goclone,rflanagan/reginaldflanagan-project1,glycerine/jeaten-go-arrayof-structof,d0f/go-zh,bryanxu/go-zh,rdp/rogerpack2005-golang,rflanagan/reginaldflanagan-project1,rdp/rogerpack2005-golang,mhennings/marcohennings-go,scirelli/scirelli-go,d0f/go-zh,glycerine/jeaten-go-arrayof-structof,mhennings/marcohennings-go,rflanagan/reginaldflanagan-project1,rdp/rogerpack2005-golang,mhennings/marcohennings-go,rflanagan/reginaldflanagan-project1,d0f/go-zh,scirelli/scirelli-go,bryanxu/go-zh,scirelli/scirelli-go,glycerine/jeaten-go-arrayof-structof,d0f/go-zh,sanjosh/sanjos100-tipc,rdp/rogerpack2005-golang,scirelli/scirelli-go,sanjosh/sanjos100-tipc,Triskite/willstone-goclone,glycerine/jeaten-go-arrayof-structof,webfd/go-zh,webfd/go-zh,sanjosh/sanjos100-tipc,webfd/go-zh,glycerine/jeaten-go-arrayof-structof,rdp/rogerpack2005-golang,mhennings/marcohennings-go,Triskite/willstone-goclone,rflanagan/reginaldflanagan-project1,sanjosh/sanjos100-tipc,d0f/go-zh,rflanagan/reginaldflanagan-project1,rdp/rogerpack2005-golang,mhennings/marcohennings-go,webfd/go-zh,glycerine/jeaten-go-arrayof-structof,scirelli/scirelli-go,rflanagan/reginaldflanagan-project1,glycerine/jeaten-go-arrayof-structof,sanjosh/sanjos100-tipc,Triskite/willstone-goclone,mhennings/marcohennings-go,sanjosh/sanjos100-tipc,glycerine/jeaten-go-arrayof-structof,mhennings/marcohennings-go,rflanagan/reginaldflanagan-project1,mhennings/marcohennings-go,Triskite/willstone-goclone,bryanxu/go-zh,sanjosh/sanjos100-tipc,d0f/go-zh,bryanxu/go-zh,scirelli/scirelli-go,rdp/rogerpack2005-golang,webfd/go-zh,rdp/rogerpack2005-golang,Triskite/willstone-goclone,d0f/go-zh,scirelli/scirelli-go,d0f/go-zh,Triskite/willstone-goclone,bryanxu/go-zh