Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(650)

Issue 7301043: code review 7301043: net/http: fix Server blocking after a Handler's Write fails (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by bradfitz
Modified:
11 years, 3 months ago
Reviewers:
CC:
golang-dev, adg
Visibility:
Public.

Description

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 issue 4741

Patch Set 1 #

Patch Set 2 : diff -r 5bc517167a08 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 5bc517167a08 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r e9b5c084d029 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -0 lines) Patch
M src/pkg/net/http/serve_test.go View 1 1 chunk +60 lines, -0 lines 0 comments Download
M src/pkg/net/http/server.go View 1 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 5
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 3 months ago (2013-02-05 01:23:31 UTC) #1
adg
LGTM
11 years, 3 months ago (2013-02-05 02:01:30 UTC) #2
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=6e182f07ef77 *** net/http: fix Server blocking after a Handler's Write fails If ...
11 years, 3 months ago (2013-02-05 04:26:20 UTC) #3
adg
If there's one major selling point for goroutines and channels it's writing these http tests.
11 years, 3 months ago (2013-02-05 04:27:30 UTC) #4
bradfitz
11 years, 3 months ago (2013-02-05 04:30:19 UTC) #5
Yeah, I love many moving parts can communicate so succinctly.  Still hasn't
lost its novelty.

On Mon, Feb 4, 2013 at 8:26 PM, Andrew Gerrand <adg@golang.org> wrote:

> If there's one major selling point for goroutines and channels it's
> writing these http tests.
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b