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

Issue 4419042: code review 4419042: http: consume request bodies before replying (Closed)

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

Description

http: consume request bodies before replying This fixes our http behavior (even if Handlers forget to consume a request body, we do it for them before we send their response header), fixes the racy TestServerExpect, and adds TestServerConsumesRequestBody. With GOMAXPROCS>1, the http tests now seem race-free.

Patch Set 1 #

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

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

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

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

Messages

Total messages: 3
bradfitz
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 11 months ago (2011-04-14 17:35:08 UTC) #1
rsc
LGTM Cool. I was sure this was going to be a garbage collector bug.
13 years, 11 months ago (2011-04-14 17:36:34 UTC) #2
bradfitz
13 years, 11 months ago (2011-04-14 17:40:28 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=4737da6a350e ***

http: consume request bodies before replying

This fixes our http behavior (even if Handlers forget to
consume a request body, we do it for them before we send
their response header), fixes the racy TestServerExpect,
and adds TestServerConsumesRequestBody.

With GOMAXPROCS>1, the http tests now seem race-free.

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

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