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

Issue 4557058: code review 4557058: net: name-based destination address selection (Closed)

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

Description

net: name-based destination address selection getaddrinfo() orders the addresses according to RFC 3484. This means when IPv6 is working on a host we get results like: []string = {"2001:4810::110", "66.117.47.214"} and when it's not working we get: []string = {"66.117.47.214", "2001:4810::110"} thus can drop firstFavoriteAddr. This also means /etc/gai.conf works on relevant systems.

Patch Set 1 #

Patch Set 2 : diff -r 511984d82ba5 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 511984d82ba5 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 511984d82ba5 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -19 lines) Patch
M src/pkg/net/iprawsock.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/ipsock.go View 1 2 chunks +1 line, -18 lines 0 comments Download

Messages

Total messages: 6
cw
Hello rsc@golang.org, mikioh.mikioh@gmail.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 10 months ago (2011-05-28 07:43:58 UTC) #1
mikio
On Sat, May 28, 2011 at 4:43 PM, <cw@f00f.org> wrote: > Description: > net: Do ...
13 years, 10 months ago (2011-05-28 14:29:44 UTC) #2
cw
On Sat, May 28, 2011 at 11:29:44PM +0900, Mikio Hara wrote: > "net: nicer name-based ...
13 years, 10 months ago (2011-05-28 15:21:10 UTC) #3
cw
Hello rsc@golang.org, mikioh.mikioh@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-05-28 15:21:10 UTC) #4
rsc
LGTM
13 years, 10 months ago (2011-05-31 15:40:04 UTC) #5
rsc
13 years, 10 months ago (2011-05-31 15:40:15 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=b4c2ffae7034 ***

net: name-based destination address selection

getaddrinfo() orders the addresses according to RFC 3484.

This means when IPv6 is working on a host we get results like:
    []string = {"2001:4810::110", "66.117.47.214"}

and when it's not working we get:
    []string = {"66.117.47.214", "2001:4810::110"}

thus can drop firstFavoriteAddr.

This also means /etc/gai.conf works on relevant systems.

R=rsc, mikioh.mikioh
CC=golang-dev
http://codereview.appspot.com/4557058

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