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

Issue 4306042: net: Reconstitute Conn/PacketConn/Listener from os.File. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 9 months ago by albert.strasheim
Modified:
14 years, 8 months ago
Reviewers:
CC:
iant, rsc, brainman, golang-dev
Visibility:
Public.

Description

net: Reconstitute Conn/PacketConn/Listener from os.File.

Patch Set 1 #

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

Total comments: 3

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

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

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

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

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

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

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

Total comments: 4

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -0 lines) Patch
M src/pkg/net/Makefile View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
A src/pkg/net/file.go View 1 2 3 4 5 6 7 8 9 1 chunk +115 lines, -0 lines 0 comments Download
A src/pkg/net/file_test.go View 1 2 3 4 5 6 7 8 9 1 chunk +131 lines, -0 lines 0 comments Download
A src/pkg/net/file_windows.go View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 19
albert.strasheim
Hello all Please review the following change. We've been working on this code to "rebuild" ...
14 years, 9 months ago (2011-03-22 12:57:42 UTC) #1
iant
FYI http://codereview.appspot.com/4306042/diff/2001/src/pkg/net/fd.go File src/pkg/net/fd.go (right): http://codereview.appspot.com/4306042/diff/2001/src/pkg/net/fd.go#newcode136 src/pkg/net/fd.go:136: func (s *pollServer) RemoveFD(fd *netFD, key int, mode ...
14 years, 9 months ago (2011-03-22 14:30:20 UTC) #2
albert.strasheim
On 2011/03/22 14:30:20, iant wrote: > http://codereview.appspot.com/4306042/diff/2001/src/pkg/net/fd.go > File src/pkg/net/fd.go (right): > > http://codereview.appspot.com/4306042/diff/2001/src/pkg/net/fd.go#newcode136 > ...
14 years, 9 months ago (2011-03-22 16:11:25 UTC) #3
rsc
Please revert the shutdown changes. Let's focus this CL on being able to create a ...
14 years, 9 months ago (2011-03-22 16:21:38 UTC) #4
albert.strasheim
Hello On 2011/03/22 16:21:38, rsc wrote: > Please revert the shutdown changes. Let's focus > ...
14 years, 9 months ago (2011-03-22 16:34:28 UTC) #5
rsc
> I like the API, but I don't quite understand how this is going to ...
14 years, 9 months ago (2011-03-22 16:42:35 UTC) #6
albert.strasheim
Hello On 2011/03/22 16:42:35, rsc wrote: > > I like the API, but I don't ...
14 years, 9 months ago (2011-03-23 06:02:22 UTC) #7
albert.strasheim
Hello On 2011/03/23 06:02:22, albert.strasheim wrote: > On 2011/03/22 16:42:35, rsc wrote: > > > ...
14 years, 9 months ago (2011-03-23 06:44:41 UTC) #8
brainman
On 2011/03/23 06:02:22, albert.strasheim wrote: > I can see from the StartProcess code, you can't ...
14 years, 9 months ago (2011-03-23 06:45:31 UTC) #9
rsc
All you need is SO_TYPE to get the type (SOCK_STREAM, SOCK_DGRAM). The domain can be ...
14 years, 9 months ago (2011-03-23 07:02:23 UTC) #10
albert.strasheim
On 2011/03/23 06:44:41, albert.strasheim wrote: > According to man 7 socket on Linux, the way ...
14 years, 9 months ago (2011-03-23 13:36:07 UTC) #11
rsc
> For future reference, SO_ACCEPTCONN seems to do weird stuff, so I'm not > going ...
14 years, 9 months ago (2011-03-23 13:43:46 UTC) #12
albert.strasheim
Hello On Wed, Mar 23, 2011 at 3:43 PM, Russ Cox <rsc@golang.org> wrote: >> For ...
14 years, 9 months ago (2011-03-23 14:34:18 UTC) #13
rsc
> SO_ACCEPTCONN tells you whether you are dealing with a listen socket. Ah! I'd forgotten ...
14 years, 9 months ago (2011-03-23 14:43:40 UTC) #14
albert.strasheim
PTAL. I've written some tests which pass, and I also modified server_test.go locally to call ...
14 years, 9 months ago (2011-03-23 15:05:43 UTC) #15
rsc
LGTM I like how clean this is. And you don't need SO_ACCEPTCONN after all really... ...
14 years, 9 months ago (2011-03-23 15:15:11 UTC) #16
albert.strasheim
PTAL On 2011/03/23 15:15:11, rsc wrote: > LGTM > > I like how clean this ...
14 years, 9 months ago (2011-03-23 15:24:51 UTC) #17
rsc
LGTM
14 years, 9 months ago (2011-03-25 18:41:20 UTC) #18
rsc
14 years, 9 months ago (2011-03-25 18:42:28 UTC) #19
*** Submitted as 88ca3ce546aa ***

net: add FileConn, FilePacketConn, FileListener

R=iant, rsc, brainman
CC=golang-dev
http://codereview.appspot.com/4306042

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