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

Issue 12414043: code review 12414043: net: pick a pair of different address family IP address... (Closed)

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

Description

net: pick a pair of different address family IP addresses for DNS registered name *** This CL includes CL 12956050 for convenience *** This CL makes resolveInternetAddr return a list of addresses that contain a pair of different address family IP addresses if possible. This is in preparation for simple Happy Eyeballs connection setup for TCP on dual stack IP host as described in RFC 6555. Update issue 3610 Update issue 5267

Patch Set 1 : diff -r 3cde0ba2c729 https://code.google.com/p/go #

Patch Set 2 : diff -r 2fb249d994cb https://code.google.com/p/go #

Patch Set 3 : diff -r 4a2be1c8942f https://code.google.com/p/go #

Patch Set 4 : diff -r 616e50ded906 https://code.google.com/p/go #

Total comments: 6

Patch Set 5 : diff -r e1afe5447f6a https://code.google.com/p/go #

Patch Set 6 : diff -r bfc402b61fc1 https://code.google.com/p/go #

Patch Set 7 : diff -r 557c3f956330 https://code.google.com/p/go #

Total comments: 8

Patch Set 8 : diff -r 23b38422a72c https://code.google.com/p/go #

Total comments: 1

Patch Set 9 : diff -r 9b8afda16f02 https://code.google.com/p/go #

Total comments: 2

Patch Set 10 : diff -r 2f13cc5d7043 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -128 lines) Patch
M src/pkg/net/dial.go View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/net/dial_gen.go View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/net/dialgoogle_test.go View 1 chunk +25 lines, -0 lines 0 comments Download
M src/pkg/net/fd_unix.go View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/fd_windows.go View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/ipraw_test.go View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -6 lines 0 comments Download
M src/pkg/net/iprawsock.go View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -1 line 0 comments Download
M src/pkg/net/iprawsock_posix.go View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -7 lines 0 comments Download
M src/pkg/net/ipsock.go View 1 2 3 4 5 6 7 8 9 4 chunks +98 lines, -47 lines 0 comments Download
M src/pkg/net/lookup.go View 1 2 3 4 5 6 7 8 9 3 chunks +19 lines, -19 lines 0 comments Download
M src/pkg/net/sock_posix.go View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -5 lines 0 comments Download
M src/pkg/net/tcp_test.go View 1 2 2 chunks +13 lines, -6 lines 0 comments Download
M src/pkg/net/tcpsock.go View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -1 line 0 comments Download
M src/pkg/net/tcpsock_posix.go View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -7 lines 0 comments Download
M src/pkg/net/udp_test.go View 1 2 2 chunks +13 lines, -6 lines 0 comments Download
M src/pkg/net/udpsock.go View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -1 line 0 comments Download
M src/pkg/net/udpsock_posix.go View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -7 lines 0 comments Download
M src/pkg/net/unixsock.go View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M src/pkg/net/unixsock_posix.go View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 23
mikio
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
10 years, 8 months ago (2013-08-03 15:48:12 UTC) #1
mikio
ping
10 years, 8 months ago (2013-08-07 03:38:49 UTC) #2
bradfitz
I'm concerned that this introduces allocations for the common case (not having multiple Adds) in ...
10 years, 8 months ago (2013-08-07 16:53:17 UTC) #3
mikio
PTAL PTAL On Thu, Aug 8, 2013 at 1:53 AM, Brad Fitzpatrick <bradfitz@golang.org> wrote: > ...
10 years, 8 months ago (2013-08-08 21:13:48 UTC) #4
mikio
ping
10 years, 8 months ago (2013-08-12 21:54:30 UTC) #5
bradfitz
https://codereview.appspot.com/12414043/diff/61001/src/pkg/net/ipsock.go File src/pkg/net/ipsock.go (right): https://codereview.appspot.com/12414043/diff/61001/src/pkg/net/ipsock.go#newcode43 src/pkg/net/ipsock.go:43: switch ma[0].(type) { how about just: return "multi" https://codereview.appspot.com/12414043/diff/61001/src/pkg/net/ipsock.go#newcode56 ...
10 years, 8 months ago (2013-08-12 22:50:25 UTC) #6
mikio
PTAL https://codereview.appspot.com/12414043/diff/61001/src/pkg/net/ipsock.go File src/pkg/net/ipsock.go (right): https://codereview.appspot.com/12414043/diff/61001/src/pkg/net/ipsock.go#newcode43 src/pkg/net/ipsock.go:43: switch ma[0].(type) { On 2013/08/12 22:50:25, bradfitz wrote: ...
10 years, 8 months ago (2013-08-13 00:11:47 UTC) #7
mikio
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 8 months ago (2013-08-13 07:43:27 UTC) #8
bradfitz
Now the pilotAddr everywhere scares me. I think it's too easy to forget one and ...
10 years, 8 months ago (2013-08-13 16:11:03 UTC) #9
mikio
thanks for the feedback, will do so. > Sorry for the design feedback, but to ...
10 years, 8 months ago (2013-08-13 23:48:25 UTC) #10
mikio
Hello golang-dev@googlegroups.com, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 8 months ago (2013-08-14 20:24:15 UTC) #11
bradfitz
Looking nicer. https://codereview.appspot.com/12414043/diff/87001/src/pkg/net/ipsock.go File src/pkg/net/ipsock.go (right): https://codereview.appspot.com/12414043/diff/87001/src/pkg/net/ipsock.go#newcode32 src/pkg/net/ipsock.go:32: var nilIntAddr intAddr I'd just delete this ...
10 years, 8 months ago (2013-08-14 20:39:14 UTC) #12
mikio
PTAL https://codereview.appspot.com/12414043/diff/87001/src/pkg/net/ipsock.go File src/pkg/net/ipsock.go (right): https://codereview.appspot.com/12414043/diff/87001/src/pkg/net/ipsock.go#newcode32 src/pkg/net/ipsock.go:32: var nilIntAddr intAddr On 2013/08/14 20:39:14, bradfitz wrote: ...
10 years, 8 months ago (2013-08-14 21:17:17 UTC) #13
rsc
https://codereview.appspot.com/12414043/diff/99001/src/pkg/net/ipsock.go File src/pkg/net/ipsock.go (right): https://codereview.appspot.com/12414043/diff/99001/src/pkg/net/ipsock.go#newcode55 src/pkg/net/ipsock.go:55: // be used as the API that implements Addr ...
10 years, 8 months ago (2013-08-16 01:17:34 UTC) #14
mikio
aha, thx! On Friday, August 16, 2013 10:17:34 AM UTC+9, rsc wrote: > > > ...
10 years, 8 months ago (2013-08-16 04:19:43 UTC) #15
mikio
PTAL > Why does it implement Addr? right, this patch set adds new interface netaddr ...
10 years, 8 months ago (2013-08-18 12:47:16 UTC) #16
mikio
ping
10 years, 8 months ago (2013-08-22 00:42:57 UTC) #17
bradfitz
https://codereview.appspot.com/12414043/diff/108001/src/pkg/net/ipsock.go File src/pkg/net/ipsock.go (right): https://codereview.appspot.com/12414043/diff/108001/src/pkg/net/ipsock.go#newcode92 src/pkg/net/ipsock.go:92: return nil shouldn't this be addrList(nil) so .Addr() on ...
10 years, 8 months ago (2013-08-22 01:10:37 UTC) #18
mikio
PTAL https://codereview.appspot.com/12414043/diff/108001/src/pkg/net/ipsock.go File src/pkg/net/ipsock.go (right): https://codereview.appspot.com/12414043/diff/108001/src/pkg/net/ipsock.go#newcode92 src/pkg/net/ipsock.go:92: return nil > shouldn't this be addrList(nil) so ...
10 years, 8 months ago (2013-08-23 12:29:51 UTC) #19
mikio
ping
10 years, 8 months ago (2013-08-23 21:52:03 UTC) #20
dave_cheney.net
On 2013/08/23 21:52:03, mikio wrote: > ping Hi Mikio, I've tried to review this CL ...
10 years, 8 months ago (2013-08-26 00:35:34 UTC) #21
mikio
as you wish. On Mon, Aug 26, 2013 at 9:35 AM, <dave@cheney.net> wrote: > On ...
10 years, 8 months ago (2013-08-26 02:11:08 UTC) #22
mikio
10 years, 8 months ago (2013-08-28 08:54:53 UTC) #23
*** Abandoned ***
Sign in to reply to this message.

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