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

Issue 7273049: code review 7273049: net/http: allow graceful server shutdown

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 4 months ago by pah
Modified:
12 years, 3 months ago
Reviewers:
rsc, bradfitz
CC:
golang-codereviews
Visibility:
Public.

Description

net/http: allow graceful server shutdown Adds Close method to Server. Fixes issue 4674. Benchmark results from Intel(R) Core(TM)2 Duo CPU P8700 @ 2.53GHz linux/amd64: benchmark old ns/op new ns/op delta BenchmarkServer 164948 169391 +2.69% BenchmarkServer-2 139033 142452 +2.46%

Patch Set 1 #

Patch Set 2 : diff -r 885321ad3873 https://go.googlecode.com/hg/ #

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

Total comments: 12

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -1 line) Patch
M src/pkg/net/http/serve_test.go View 1 1 chunk +126 lines, -0 lines 0 comments Download
M src/pkg/net/http/server.go View 1 2 3 6 chunks +43 lines, -1 line 0 comments Download

Messages

Total messages: 10
pah
Hello bradfitz@golang.org, golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com, patrick.allen.higgins@gmail.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 4 months ago (2013-02-04 20:12:56 UTC) #1
bradfitz
https://codereview.appspot.com/7273049/diff/4001/src/pkg/net/http/server.go File src/pkg/net/http/server.go (right): https://codereview.appspot.com/7273049/diff/4001/src/pkg/net/http/server.go#newcode790 src/pkg/net/http/server.go:790: c.server.mu.RLock() if we have this notion of closing, we'd ...
13 years, 4 months ago (2013-02-04 20:41:05 UTC) #2
pah
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com, patrick.allen.higgins@gmail.com), Please take another look.
13 years, 4 months ago (2013-02-04 21:16:05 UTC) #3
pah
https://codereview.appspot.com/7273049/diff/4001/src/pkg/net/http/server.go File src/pkg/net/http/server.go (right): https://codereview.appspot.com/7273049/diff/4001/src/pkg/net/http/server.go#newcode790 src/pkg/net/http/server.go:790: c.server.mu.RLock() On 2013/02/04 20:41:05, bradfitz wrote: > if we ...
13 years, 4 months ago (2013-02-04 21:17:09 UTC) #4
bradfitz
We should decide what Close should even do before implementing it. I think it should ...
13 years, 4 months ago (2013-02-04 21:59:22 UTC) #5
pah
I agree that the API is weird. I was thinking it's OK if it's a ...
13 years, 4 months ago (2013-02-04 22:27:18 UTC) #6
bradfitz
If you'd like to resume discussing this, we now can.
13 years, 1 month ago (2013-05-14 23:23:25 UTC) #7
pah
On 2013/05/14 23:23:25, bradfitz wrote: > If you'd like to resume discussing this, we now ...
13 years ago (2013-06-06 04:07:51 UTC) #8
gobot
Replacing golang-dev with golang-codereviews.
12 years, 6 months ago (2013-12-20 16:21:41 UTC) #9
rsc
12 years, 3 months ago (2014-03-05 20:00:43 UTC) #10
R=close

timed out
Sign in to reply to this message.

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