Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Issue 841993002: Make unix socket Get{Peer|Local}Address return more rational errors. (Closed)

Created:
5 years, 11 months ago by tobiasjs
Modified:
5 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, byungchul, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make unix socket Get{Peer|Local}Address return more rational errors. Rather than return ERR_NOT_IMPLEMENTED it seems sensible to return ERR_SOCKET_NOT_CONNECTED in the case that the socket is not connected, but unconditionally return ERR_ADDRESS_INVALID if connected (because there's no IP addr or port associated with either end of the socket). BUG=431412 Committed: https://crrev.com/ff494028c4d918f24ced2b718369ae194748d300 Cr-Commit-Position: refs/heads/master@{#310564}

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -4 lines) Patch
M net/socket/unix_domain_client_socket_posix.cc View 1 2 chunks +17 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
tobiasjs
Hi Ryan, Could you please comment on whether this is a sensible way to get ...
5 years, 11 months ago (2015-01-08 16:34:31 UTC) #2
tobiasjs
cc'ing mmenke and byungchul with an alternative fix for BUG=431412
5 years, 11 months ago (2015-01-08 18:00:30 UTC) #3
mmenke
LGTM https://codereview.chromium.org/841993002/diff/1/net/socket/unix_domain_client_socket_posix.cc File net/socket/unix_domain_client_socket_posix.cc (right): https://codereview.chromium.org/841993002/diff/1/net/socket/unix_domain_client_socket_posix.cc#newcode108 net/socket/unix_domain_client_socket_posix.cc:108: } nit: Don't use braces for if's when ...
5 years, 11 months ago (2015-01-08 18:15:53 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/841993002/20001
5 years, 11 months ago (2015-01-08 18:44:05 UTC) #7
byungchul
lgtm Thank you for fix.
5 years, 11 months ago (2015-01-08 18:48:25 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 11 months ago (2015-01-08 19:41:21 UTC) #10
commit-bot: I haz the power
5 years, 11 months ago (2015-01-08 19:42:55 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ff494028c4d918f24ced2b718369ae194748d300
Cr-Commit-Position: refs/heads/master@{#310564}

Powered by Google App Engine
This is Rietveld 408576698