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

Issue 7627048: code review 7627048: net: use original raddr if getpeername fails (Closed)

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

Description

net: use original raddr if getpeername fails This CL updates CL 7511043; - adds new test cases for both UDPConn and UnixConn, - makes sure unnamed UnixAddr handling, - replaces t.Errorf with t.Fatalf in sockname related test cases. Fixes issue 3721 (again). Fixes issue 3838 (again).

Patch Set 1 #

Patch Set 2 : diff -r 9ca85035f95a https://go.googlecode.com/hg/ #

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

Total comments: 4

Patch Set 4 : diff -r 07ed29a4f9f5 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r 07ed29a4f9f5 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -36 lines) Patch
M src/pkg/net/server_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/sock_posix.go View 1 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/net/tcp_test.go View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M src/pkg/net/udp_test.go View 1 2 3 1 chunk +40 lines, -4 lines 0 comments Download
M src/pkg/net/unix_test.go View 1 2 3 5 chunks +117 lines, -15 lines 0 comments Download
M src/pkg/net/unixsock_posix.go View 1 2 3 6 chunks +16 lines, -9 lines 0 comments Download

Messages

Total messages: 4
mikio
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years ago (2013-03-22 12:26:24 UTC) #1
rsc
LGTM https://codereview.appspot.com/7627048/diff/5001/src/pkg/net/ipraw_test.go File src/pkg/net/ipraw_test.go (right): https://codereview.appspot.com/7627048/diff/5001/src/pkg/net/ipraw_test.go#newcode50 src/pkg/net/ipraw_test.go:50: var ipConnLocalNameTests = []struct { It's very disorienting ...
12 years ago (2013-03-22 14:31:09 UTC) #2
mikio
PTAL Fixes tests on Linux, Hm, autobind feature for AF_UNIX. https://codereview.appspot.com/7627048/diff/5001/src/pkg/net/ipraw_test.go File src/pkg/net/ipraw_test.go (right): https://codereview.appspot.com/7627048/diff/5001/src/pkg/net/ipraw_test.go#newcode50 ...
12 years ago (2013-03-23 00:01:22 UTC) #3
mikio
12 years ago (2013-03-23 13:32:45 UTC) #4
*** Submitted as https://code.google.com/p/go/source/detail?r=ec0937aebe0a ***

net: use original raddr if getpeername fails

This CL updates CL 7511043;
- adds new test cases for both UDPConn and UnixConn,
- makes sure unnamed UnixAddr handling,
- replaces t.Errorf with t.Fatalf in sockname related test cases.

Fixes issue 3721 (again).
Fixes issue 3838 (again).

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

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