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

Issue 5602043: code review 5602043: net/http: close client fd sooner on response read error (Closed)

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

Description

net/http: close client fd sooner on response read error This fixes some test noise in TestStressSurpriseServerCloses when ulimit -n something low, like 256 on a Mac. Previously, when the server closed on us and we were expecting more responses (like we are in that test), we'd read an "Unexpected EOF" and just forget about the client's net.Conn. Now it's closed, rather than waiting on the finalizer to release the fd.

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M src/pkg/net/http/transport.go View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 3
bradfitz
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
13 years, 5 months ago (2012-01-31 17:39:19 UTC) #1
rsc
LGTM
13 years, 5 months ago (2012-01-31 17:40:02 UTC) #2
bradfitz
13 years, 5 months ago (2012-01-31 17:45:15 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=e7f919814232 ***

net/http: close client fd sooner on response read error

This fixes some test noise in TestStressSurpriseServerCloses when
ulimit -n something low, like 256 on a Mac.

Previously, when the server closed on us and we were expecting more
responses (like we are in that test), we'd read an "Unexpected EOF"
and just forget about the client's net.Conn.  Now it's closed,
rather than waiting on the finalizer to release the fd.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/5602043
Sign in to reply to this message.

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