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

Issue 7513045: code review 7513045: net: more refactoring in preparation for runtime integr... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by dvyukov
Modified:
12 years ago
Reviewers:
mikio, iant
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

net: more refactoring in preparation for runtime integrated pollster Move pollServer from fd_unix.go to fd_poll_unix.go. Add pollServerInit(*NetFD) to allow custom initialization. Add pollServer.Close(*NetFD) to allow custom finalization. Move setDeadline() to fd_poll_unix.go to allow custom handling of deadlines. Move newPollServer() to fd_poll_unix.go to allow custom initialization. No logical code changes. The next step will be to turn off fd_poll_unix.go for some platform (I have changes for darwin/linux) and redirect it into runtime. See: https://codereview.appspot.com/7569043/diff/2001/src/pkg/net/fd_poll_runtime.go

Patch Set 1 #

Patch Set 2 : diff -r 790eddf30d5d https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r 790eddf30d5d https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 4 : diff -r 790eddf30d5d https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 5 : diff -r 790eddf30d5d https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 6 : diff -r 790eddf30d5d https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 7 : diff -r a346bcf77992 https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -326 lines) Patch
A src/pkg/net/fd_poll_unix.go View 1 2 3 1 chunk +327 lines, -0 lines 0 comments Download
M src/pkg/net/fd_unix.go View 1 2 3 4 chunks +4 lines, -259 lines 0 comments Download
R src/pkg/net/newpollserver_unix.go View 1 1 chunk +0 lines, -46 lines 2 comments Download
M src/pkg/net/sock_posix.go View 1 1 chunk +6 lines, -2 lines 0 comments Download
M src/pkg/net/sockopt_posix.go View 1 2 chunks +0 lines, -19 lines 0 comments Download
M src/pkg/net/sockopt_windows.go View 1 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 5
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
12 years ago (2013-03-07 13:44:59 UTC) #1
bradfitz
LGTM On Thu, Mar 7, 2013 at 5:44 AM, <dvyukov@google.com> wrote: > Reviewers: golang-dev1, > ...
12 years ago (2013-03-07 16:35:30 UTC) #2
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=220ad1fe57ad *** net: more refactoring in preparation for runtime integrated pollster Move ...
12 years ago (2013-03-07 17:45:09 UTC) #3
mikio
https://codereview.appspot.com/7513045/diff/16001/src/pkg/net/newpollserver_unix.go File src/pkg/net/newpollserver_unix.go (left): https://codereview.appspot.com/7513045/diff/16001/src/pkg/net/newpollserver_unix.go#oldcode14 src/pkg/net/newpollserver_unix.go:14: func newPollServer() (s *pollServer, err error) { IIRC, gofrontend ...
12 years ago (2013-03-08 00:27:02 UTC) #4
iant
12 years ago (2013-03-08 01:20:00 UTC) #5
Message was sent while issue was closed.
https://codereview.appspot.com/7513045/diff/16001/src/pkg/net/newpollserver_u...
File src/pkg/net/newpollserver_unix.go (left):

https://codereview.appspot.com/7513045/diff/16001/src/pkg/net/newpollserver_u...
src/pkg/net/newpollserver_unix.go:14: func newPollServer() (s *pollServer, err
error) {
On 2013/03/08 00:27:02, mikio wrote:
> IIRC, gofrontend requires separated newPollServer.

Yes, because RTEMS doesn't have pipe.  But this all might change in the new
world, I don't know.
Sign in to reply to this message.

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