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

Issue 11809043: code review 11809043: net: make protocol-specific WriteTo, WriteMsg methods r... (Closed)

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

Description

net: make protocol-specific WriteTo, WriteMsg methods return error instead of crash

Patch Set 1 #

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

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

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

Total comments: 2

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -0 lines) Patch
M src/pkg/net/iprawsock_posix.go View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M src/pkg/net/protoconn_test.go View 1 2 3 4 3 chunks +29 lines, -0 lines 0 comments Download
M src/pkg/net/udpsock_plan9.go View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/pkg/net/udpsock_posix.go View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M src/pkg/net/unixsock_posix.go View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9
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
11 years, 9 months ago (2013-07-25 03:43:10 UTC) #1
dave_cheney.net
On 2013/07/25 03:43:10, mikio wrote: > Hello mailto:golang-dev@googlegroups.com (cc: mailto:golang-dev@googlegroups.com), > > I'd like you ...
11 years, 9 months ago (2013-07-25 11:07:53 UTC) #2
mikio
On Thu, Jul 25, 2013 at 8:07 PM, <dave@cheney.net> wrote: > How did this come ...
11 years, 9 months ago (2013-07-25 14:54:32 UTC) #3
dave_cheney.net
+cc adg/rsc If you're talking about DialTCP, then I see your reasoning. I think this ...
11 years, 9 months ago (2013-07-26 03:38:24 UTC) #4
mikio
ping
11 years, 9 months ago (2013-07-31 03:33:03 UTC) #5
bradfitz
R=r If you squint right, this looks like an API change. Where we once paniced, ...
11 years, 9 months ago (2013-08-01 21:27:27 UTC) #6
mikio
ping
11 years, 8 months ago (2013-08-12 21:55:07 UTC) #7
rsc
LGTM https://codereview.appspot.com/11809043/diff/13001/src/pkg/net/unixsock_posix.go File src/pkg/net/unixsock_posix.go (right): https://codereview.appspot.com/11809043/diff/13001/src/pkg/net/unixsock_posix.go#newcode177 src/pkg/net/unixsock_posix.go:177: } else if addr.Net != sotypeToNet(c.fd.sotype) { no ...
11 years, 8 months ago (2013-08-13 20:19:04 UTC) #8
mikio
11 years, 8 months ago (2013-08-18 10:19:47 UTC) #9
*** Submitted as https://code.google.com/p/go/source/detail?r=9b8afda16f02 ***

net: make protocol-specific WriteTo, WriteMsg methods return error instead of
crash

R=golang-dev, dave, rsc, adg, bradfitz
CC=golang-dev
https://codereview.appspot.com/11809043

https://codereview.appspot.com/11809043/diff/13001/src/pkg/net/unixsock_posix.go
File src/pkg/net/unixsock_posix.go (right):

https://codereview.appspot.com/11809043/diff/13001/src/pkg/net/unixsock_posix...
src/pkg/net/unixsock_posix.go:177: } else if addr.Net !=
sotypeToNet(c.fd.sotype) {
On 2013/08/13 20:19:05, rsc wrote:
> no else after body that returns or goto's etc
> 
> if addr == nil {
>    return ...
> }
> if addr.Net != ...

Done.
Sign in to reply to this message.

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