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

Issue 7220076: code review 7220076: net/http: fix when server deadlines get extended (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, albert.strasheim, pah, adg
Visibility:
Public.

Description

net/http: fix when server deadlines get extended Deadlines should be extended at the beginning of a request, not at the beginning of a connection. Fixes issue 4676

Patch Set 1 #

Patch Set 2 : diff -r 3879e01240d4 https://go.googlecode.com/hg/ #

Total comments: 2

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -25 lines) Patch
M src/pkg/net/http/serve_test.go View 1 4 chunks +25 lines, -19 lines 0 comments Download
M src/pkg/net/http/server.go View 1 3 chunks +16 lines, -6 lines 0 comments Download

Messages

Total messages: 13
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-01 21:44:57 UTC) #1
albert.strasheim
Howdy I suspect there might be a bug in this area. I asked about it ...
11 years, 3 months ago (2013-02-01 21:52:49 UTC) #2
bradfitz
That's a different bug, then. This fixes a real bug, as shown in the test. ...
11 years, 3 months ago (2013-02-01 22:02:30 UTC) #3
bradfitz
On Fri, Feb 1, 2013 at 1:52 PM, <fullung@gmail.com> wrote: > Howdy > > I ...
11 years, 3 months ago (2013-02-01 22:06:43 UTC) #4
albert.strasheim
Hello On Sat, Feb 2, 2013 at 12:06 AM, Brad Fitzpatrick <bradfitz@golang.org> wrote: > On ...
11 years, 3 months ago (2013-02-01 22:09:49 UTC) #5
bradfitz
On Fri, Feb 1, 2013 at 2:09 PM, Albert Strasheim <fullung@gmail.com> wrote: > Hello > ...
11 years, 3 months ago (2013-02-01 22:14:10 UTC) #6
pah
On 2013/02/01 21:44:57, bradfitz wrote: > Hello mailto:golang-dev@googlegroups.com, > > I'd like you to review ...
11 years, 3 months ago (2013-02-01 23:13:08 UTC) #7
bradfitz
On Fri, Feb 1, 2013 at 3:13 PM, <patrick.allen.higgins@gmail.com> wrote: > On 2013/02/01 21:44:57, bradfitz ...
11 years, 3 months ago (2013-02-02 01:17:16 UTC) #8
pah
On 2013/02/02 01:17:16, bradfitz wrote: > On Fri, Feb 1, 2013 at 3:13 PM, <mailto:patrick.allen.higgins@gmail.com> ...
11 years, 3 months ago (2013-02-02 01:48:11 UTC) #9
adg
Looks pretty good overall https://codereview.appspot.com/7220076/diff/2001/src/pkg/net/http/server.go File src/pkg/net/http/server.go (right): https://codereview.appspot.com/7220076/diff/2001/src/pkg/net/http/server.go#newcode425 src/pkg/net/http/server.go:425: c.rwc.SetWriteDeadline(time.Now().Add(d)) I don't understand why ...
11 years, 3 months ago (2013-02-04 02:58:51 UTC) #10
bradfitz
https://codereview.appspot.com/7220076/diff/2001/src/pkg/net/http/server.go File src/pkg/net/http/server.go (right): https://codereview.appspot.com/7220076/diff/2001/src/pkg/net/http/server.go#newcode425 src/pkg/net/http/server.go:425: c.rwc.SetWriteDeadline(time.Now().Add(d)) On 2013/02/04 02:58:51, adg wrote: > I don't ...
11 years, 3 months ago (2013-02-04 17:25:43 UTC) #11
adg
LGTM
11 years, 3 months ago (2013-02-04 21:45:15 UTC) #12
bradfitz
11 years, 3 months ago (2013-02-04 21:52:48 UTC) #13
*** Submitted as https://code.google.com/p/go/source/detail?r=6f26fec4b5cd ***

net/http: fix when server deadlines get extended

Deadlines should be extended at the beginning of
a request, not at the beginning of a connection.

Fixes issue 4676

R=golang-dev, fullung, patrick.allen.higgins, adg
CC=golang-dev
https://codereview.appspot.com/7220076
Sign in to reply to this message.

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