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

Issue 84750043: code review 84750043: net: drop unnecessary nested error notifications (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by mikio
Modified:
10 years ago
Reviewers:
brainman, rsc, iant, bradfitz
CC:
golang-codereviews
Visibility:
Public.

Description

net: drop unnecessary nested error notifications Before fixing some weirdnesses on error notifications of the net package, we need to drop unnecessary nested error notifications like &net.OpError{Err: &os.SyscallError{Err: syscall.Errno} because this type of notifications doesn't conform with net.Error interface and makes things confuse. We will provide a few limited types of error notifications on network connection setup, teardown and IO operation paths like the following: - io.EOF - syscall.Errno - &net.OpError{Err: syscall.Errno} - &net.OpError{Err: &errors.errorString{}} - &net.OpError{Err: &os.SyscallError{Err: syscall.Errno}} Update issue 4856 Update issue 7708

Patch Set 1 : diff -r 88b3b2fa4dde http://code.google.com/p/go #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -140 lines) Patch
M src/pkg/net/fd_windows.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/net/file_plan9.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/net/file_unix.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/net/file_windows.go View 3 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/net/interface_bsd.go View 5 chunks +6 lines, -7 lines 0 comments Download
M src/pkg/net/interface_darwin.go View 2 chunks +4 lines, -7 lines 0 comments Download
M src/pkg/net/interface_freebsd.go View 2 chunks +4 lines, -7 lines 0 comments Download
M src/pkg/net/interface_linux.go View 5 chunks +6 lines, -7 lines 0 comments Download
M src/pkg/net/interface_windows.go View 5 chunks +4 lines, -5 lines 0 comments Download
M src/pkg/net/lookup_windows.go View 15 chunks +15 lines, -16 lines 2 comments Download
M src/pkg/net/sock_posix.go View 4 chunks +4 lines, -5 lines 0 comments Download
M src/pkg/net/sockopt_bsd.go View 2 chunks +4 lines, -5 lines 0 comments Download
M src/pkg/net/sockopt_linux.go View 2 chunks +4 lines, -7 lines 0 comments Download
M src/pkg/net/sockopt_posix.go View 5 chunks +5 lines, -8 lines 0 comments Download
M src/pkg/net/sockopt_solaris.go View 2 chunks +4 lines, -7 lines 0 comments Download
M src/pkg/net/sockopt_windows.go View 2 chunks +2 lines, -5 lines 0 comments Download
M src/pkg/net/sockoptip_bsd.go View 3 chunks +4 lines, -7 lines 0 comments Download
M src/pkg/net/sockoptip_linux.go View 3 chunks +3 lines, -6 lines 0 comments Download
M src/pkg/net/sockoptip_posix.go View 5 chunks +5 lines, -8 lines 0 comments Download
M src/pkg/net/sockoptip_windows.go View 4 chunks +3 lines, -4 lines 0 comments Download
M src/pkg/net/tcpsockopt_darwin.go View 2 chunks +1 line, -2 lines 0 comments Download
M src/pkg/net/tcpsockopt_dragonfly.go View 2 chunks +2 lines, -3 lines 0 comments Download
M src/pkg/net/tcpsockopt_openbsd.go View 2 chunks +1 line, -2 lines 0 comments Download
M src/pkg/net/tcpsockopt_posix.go View 1 chunk +2 lines, -5 lines 0 comments Download
M src/pkg/net/tcpsockopt_solaris.go View 2 chunks +1 line, -2 lines 0 comments Download
M src/pkg/net/tcpsockopt_unix.go View 2 chunks +2 lines, -3 lines 0 comments Download
M src/pkg/net/tcpsockopt_windows.go View 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 8
mikio
Hello iant@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to http://code.google.com/p/go
10 years ago (2014-04-05 03:21:55 UTC) #1
brainman
https://codereview.appspot.com/84750043/diff/80001/src/pkg/net/lookup_windows.go File src/pkg/net/lookup_windows.go (left): https://codereview.appspot.com/84750043/diff/80001/src/pkg/net/lookup_windows.go#oldcode22 src/pkg/net/lookup_windows.go:22: return 0, os.NewSyscallError("GetProtoByName", err) How is that line change ...
10 years ago (2014-04-06 02:37:32 UTC) #2
bradfitz
So many changes in these parts at this stage makes me nervous, especially without new ...
10 years ago (2014-04-06 02:38:59 UTC) #3
iant
I agree. Ian On Sat, Apr 5, 2014 at 7:38 PM, <bradfitz@golang.org> wrote: > So ...
10 years ago (2014-04-07 17:20:09 UTC) #4
mikio
sure, just sent CL 85630044. On 2014/04/07 17:20:09, iant wrote: > I agree. > > ...
10 years ago (2014-04-10 00:48:15 UTC) #5
mikio
https://codereview.appspot.com/84750043/diff/80001/src/pkg/net/lookup_windows.go File src/pkg/net/lookup_windows.go (left): https://codereview.appspot.com/84750043/diff/80001/src/pkg/net/lookup_windows.go#oldcode22 src/pkg/net/lookup_windows.go:22: return 0, os.NewSyscallError("GetProtoByName", err) On 2014/04/06 02:37:32, brainman wrote: ...
10 years ago (2014-04-10 00:51:44 UTC) #6
rsc
R=close I'm sorry, but we're about to cut the 1.3 beta, and I don't want ...
10 years ago (2014-04-17 02:59:28 UTC) #7
mikio
10 years ago (2014-04-22 00:31:20 UTC) #8
*** Abandoned ***
Sign in to reply to this message.

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