1
0
mirror of https://github.com/golang/go synced 2024-11-18 12:04:57 -07:00
The Go programming language
Go to file
Brad Fitzpatrick d1e16d06b4 net/http: fix Server blocking after a Handler's Write fails
If a Handle's Write to a ResponseWriter fails (e.g. via a
net.Conn WriteDeadline via WriteTimeout on the Server), the
Server was blocking forever waiting for reads on that
net.Conn, even after a Write failed.

Instead, once we see a Write fail, close the connection,
since it's then dead to us anyway.

Fixes #4741

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/7301043
2013-02-04 20:26:25 -08:00
api cmd/api: normalize byte to uint8 and rune to int32 2013-01-28 16:45:45 -08:00
doc doc/codewalk: gofmt pig.go 2013-01-31 13:42:26 -08:00
include include: Plan 9: hide any previous definition of Runemax 2013-01-30 07:56:08 -08:00
lib codereview: show 'not lgtms' in hg p output (with lgtms) 2013-01-29 09:32:49 -08:00
misc runtime: cgo-related fixes 2013-02-01 08:34:41 -08:00
src net/http: fix Server blocking after a Handler's Write fails 2013-02-04 20:26:25 -08:00
test cmd/gc: fix escape analysis 2013-02-04 22:48:31 -05:00
.hgignore
.hgtags
AUTHORS A+C: add Yusuke Kagiwada (Individual CLA) 2013-02-03 11:42:51 -08:00
CONTRIBUTORS C: add Alex Bramley (Google CLA) 2013-02-03 22:41:24 -05:00
favicon.ico godoc: update favicon 2012-10-11 17:02:36 +11:00
LICENSE
PATENTS
README
robots.txt

This is the source code repository for the Go programming language.  

For documentation about how to install and use Go,
visit http://golang.org/ or load doc/install.html in your web browser.

After installing Go, you can view a nicely formatted
doc/install.html by running godoc --http=:6060
and then visiting http://localhost:6060/doc/install.html.

Unless otherwise noted, the Go source files are distributed
under the BSD-style license found in the LICENSE file.

--

Binary Distribution Notes

If you have just untarred a binary Go distribution, you need to set
the environment variable $GOROOT to the full path of the go
directory (the one containing this README).  You can omit the
variable if you unpack it into /usr/local/go, or if you rebuild
from sources by running all.bash (see doc/install.html).
You should also add the Go binary directory $GOROOT/bin
to your shell's path.

For example, if you extracted the tar file into $HOME/go, you might
put the following in your .profile:

    export GOROOT=$HOME/go
    export PATH=$PATH:$GOROOT/bin

See doc/install.html for more details.