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

Issue 154099: Created new Conn.Flush() public method so the fd pipeli... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 5 months ago by david.titarenco
Modified:
14 years, 5 months ago
Reviewers:
r, rsc, david.titarenco
Visibility:
Public.

Description

Created new Conn.Flush() public method so the fd pipeline can be drained arbitrarily by the user. Commented both flush methods so people know what they are looking at. This is a necessary fix for streaming and long polling HTTP services. Fixes issue 93.

Patch Set 1 #

Total comments: 3

Patch Set 2 : code review 154099: Created new Conn.Flush() public method so the fd pipeli... #

Total comments: 5

Patch Set 3 : code review 154099: Created new Conn.Flush() public method so the fd pipeli... #

Patch Set 4 : code review 154099: Created new Conn.Flush() public method so the fd pipeli... #

Total comments: 1

Patch Set 5 : code review 154099: Created new Conn.Flush() public method so the fd pipeli... #

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

Messages

Total messages: 13
rsc
Looks pretty good. A few procedural things. http://codereview.appspot.com/154099/diff/1/2 File CONTRIBUTORS (right): http://codereview.appspot.com/154099/diff/1/2#newcode52 CONTRIBUTORS:52: David Titarenco ...
14 years, 5 months ago (2009-11-13 02:32:59 UTC) #1
david.titarenco
Thanks for the support and help. Re-upped Patch set 2. I'll be filling out the ...
14 years, 5 months ago (2009-11-13 06:02:29 UTC) #2
r
http://codereview.appspot.com/154099/diff/1004/6 File CONTRIBUTORS (right): http://codereview.appspot.com/154099/diff/1004/6#newcode52 CONTRIBUTORS:52: David Titarenco <david@polyfx.com> please put this in a different ...
14 years, 5 months ago (2009-11-13 07:04:20 UTC) #3
david.titarenco
Already did, I wasn't sure how to remove the CONTRIBUTORS file from this CL.
14 years, 5 months ago (2009-11-13 07:36:06 UTC) #4
rsc
http://codereview.appspot.com/154099/diff/1004/7 File src/pkg/http/server.go (right): http://codereview.appspot.com/154099/diff/1004/7#newcode241 src/pkg/http/server.go:241: func (c *Conn) terminateRequest() { Please make this finishRequest. ...
14 years, 5 months ago (2009-11-13 07:47:51 UTC) #5
david.titarenco
http://codereview.appspot.com/154099/diff/1004/6 File CONTRIBUTORS (right): http://codereview.appspot.com/154099/diff/1004/6#newcode52 CONTRIBUTORS:52: David Titarenco <david@polyfx.com> On 2009/11/13 07:04:20, r wrote: > ...
14 years, 5 months ago (2009-11-13 07:58:15 UTC) #6
david.titarenco
Removed CONTRIBUTORS from this CL. Changed the comment to what you suggested.
14 years, 5 months ago (2009-11-13 08:01:52 UTC) #7
rsc
http://codereview.appspot.com/154099/diff/1004/7 File src/pkg/http/server.go (right): http://codereview.appspot.com/154099/diff/1004/7#newcode241 src/pkg/http/server.go:241: func (c *Conn) terminateRequest() { On 2009/11/13 07:47:51, rsc ...
14 years, 5 months ago (2009-11-13 08:03:33 UTC) #8
david.titarenco
Yeah sorry about that, it's late. Fixed. You're right, close is more like the "terminate" ...
14 years, 5 months ago (2009-11-13 08:13:10 UTC) #9
rsc
Sorry, one more nit. I would make the change myself but it will cause problems ...
14 years, 5 months ago (2009-11-13 08:36:23 UTC) #10
david.titarenco
Yeah I definitely missed a line. Fixed. The make is really buggy on my system ...
14 years, 5 months ago (2009-11-13 08:42:41 UTC) #11
david.titarenco
For simplicity's sake, I'd rather use david.titarenco@gmail.com, thanks for updating the CL.
14 years, 5 months ago (2009-11-13 09:29:30 UTC) #12
rsc
14 years, 5 months ago (2009-11-14 02:06:48 UTC) #13
*** Submitted as http://code.google.com/p/go/source/detail?r=cd0140653802 ***

Created new Conn.Flush() public method so the fd pipeline can be drained
arbitrarily by the user.
Commented both flush methods so people know what they are looking at.

This is a necessary fix for streaming and long polling HTTP services.
Fixes issue 93.

R=r, rsc, david.titarenco
http://codereview.appspot.com/154099

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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