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

Issue 48300043: code review 48300043: net/http: use TCP keep-alives by default (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by bradfitz
Modified:
11 years, 6 months ago
Reviewers:
minux1, cespare
CC:
golang-codereviews, cespare, gobot, rsc, minux1
Visibility:
Public.

Description

net/http: use TCP keep-alives for ListenAndServe and ListenAndServeTLS Our default behavior for the common cases shouldn't lead to leaked TCP connections (e.g. from people closing laptops) when their Go servers are exposed to the open Internet without a proxy in front. Too many users on golang-nuts have learned this the hard way. No API change. Only ListenAndServe and ListenAndServeTLS are updated.

Patch Set 1 #

Patch Set 2 : diff -r 1b7c5daffdff https://go.googlecode.com/hg/ #

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

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

Patch Set 5 : diff -r 1d814e59a8df https://go.googlecode.com/hg/ #

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

Messages

Total messages: 6
bradfitz
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 6 months ago (2014-01-07 01:07:52 UTC) #1
bradfitz
Hello golang-codereviews@googlegroups.com (cc: golang-codereviews@googlegroups.com), Please take another look.
11 years, 6 months ago (2014-01-09 19:34:00 UTC) #2
cespare
On 2014/01/09 19:34:00, bradfitz wrote: > Hello mailto:golang-codereviews@googlegroups.com (cc: > mailto:golang-codereviews@googlegroups.com), > > Please take ...
11 years, 6 months ago (2014-01-09 20:18:06 UTC) #3
gobot
R=rsc@golang.org (assigned by bradfitz@golang.org)
11 years, 6 months ago (2014-01-09 21:18:13 UTC) #4
minux1
LGTM. Please update the subject to be more specific, e.g. net/http: use TCP keep-alives for ...
11 years, 6 months ago (2014-01-09 23:03:33 UTC) #5
bradfitz
11 years, 6 months ago (2014-01-09 23:05:12 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=e4b3e3c1edda ***

net/http: use TCP keep-alives for ListenAndServe and ListenAndServeTLS

Our default behavior for the common cases shouldn't lead to
leaked TCP connections (e.g. from people closing laptops) when
their Go servers are exposed to the open Internet without a
proxy in front.

Too many users on golang-nuts have learned this the hard way.

No API change. Only ListenAndServe and ListenAndServeTLS are
updated.

R=golang-codereviews, cespare, gobot, rsc, minux.ma
CC=golang-codereviews
https://codereview.appspot.com/48300043
Sign in to reply to this message.

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