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

Issue 7795050: code review 7795050: net: avoid use of listener socket options on active ope... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by mikio
Modified:
12 years, 1 month ago
Reviewers:
CC:
golang-dev, dave_cheney.net, bradfitz, rsc
Visibility:
Public.

Description

net: avoid use of listener socket options on active open sockets This CL ensures we use the correct socket options for passive and active open sockets. For the passive open sockets created by Listen functions, additional SO_REUSEADDR, SO_REUSEPORT options are required for the quick service restart and/or multicasting. For the active open sockets created by Dial functions, no additional options are required.

Patch Set 1 #

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

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

Total comments: 2

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

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

Messages

Total messages: 12
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
12 years, 1 month ago (2013-03-21 10:38:18 UTC) #1
dave_cheney.net
On 2013/03/21 10:38:18, mikio wrote: > Hello mailto:golang-dev@googlegroups.com (cc: mailto:golang-dev@googlegroups.com), > > I'd like you ...
12 years, 1 month ago (2013-03-21 11:12:26 UTC) #2
dave_cheney.net
On 2013/03/21 11:12:26, dfc wrote: > On 2013/03/21 10:38:18, mikio wrote: > > Hello mailto:golang-dev@googlegroups.com ...
12 years, 1 month ago (2013-03-21 12:03:19 UTC) #3
bradfitz
Yes, more context would be useful. If you need a place to dump background information ...
12 years, 1 month ago (2013-03-21 14:39:31 UTC) #4
rsc
It would really help if your CLs did not delete or insert unrelated blank lines.
12 years, 1 month ago (2013-03-21 20:10:47 UTC) #5
dave_cheney.net
Mikio, I think I understand what this change does now. If you can please update ...
12 years, 1 month ago (2013-03-22 04:00:14 UTC) #6
dave_cheney.net
Does this change address this occasional test failure ? --- FAIL: TestDualStackTCPListener-95 (0.00 seconds) unicast_posix_test.go:407: ...
12 years, 1 month ago (2013-03-22 12:32:52 UTC) #7
mikio
On Thu, Mar 21, 2013 at 8:12 PM, <dave@cheney.net> wrote: > This change looks pretty ...
12 years, 1 month ago (2013-03-25 04:20:07 UTC) #8
mikio
Sorry for the late response and thanks for your detective work. On Fri, Mar 22, ...
12 years, 1 month ago (2013-03-25 04:22:22 UTC) #9
mikio
Hello golang-dev@googlegroups.com, dave@cheney.net, bradfitz@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 1 month ago (2013-03-29 15:09:55 UTC) #10
dave_cheney.net
LGTM. Thank you, with minor comment comments Can you please revise the description again, perhaps ...
12 years, 1 month ago (2013-03-30 00:33:48 UTC) #11
mikio
12 years, 1 month ago (2013-03-30 06:21:32 UTC) #12
*** Submitted as https://code.google.com/p/go/source/detail?r=14a2912c4c0c ***

net: avoid use of listener socket options on active open sockets

This CL ensures we use the correct socket options for
passive and active open sockets.

For the passive open sockets created by Listen functions,
additional SO_REUSEADDR, SO_REUSEPORT options are required
for the quick service restart and/or multicasting.

For the active open sockets created by Dial functions, no
additional options are required.

R=golang-dev, dave, bradfitz, rsc
CC=golang-dev
https://codereview.appspot.com/7795050
Sign in to reply to this message.

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