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

Issue 2495003003: Adds some error handling to the socket implementation. (Closed)

Created:
4 years, 1 month ago by zra
Modified:
4 years, 1 month ago
Reviewers:
Cutch, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Adds some error handling to the socket implementation. I'm starting to try to track down the hang in socket_test in a call to read() on Mac. We weren't checking that the calls to set fds non-blocking were successful, so I'll start with adding code to do that. This CL also fixes the GN arm android build. R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/43a506bcc8bc57662c5e348dbf1d4ad38f90e9db

Patch Set 1 #

Patch Set 2 : Fix gn arm android build #

Patch Set 3 : Add comment #

Total comments: 2

Patch Set 4 : Add perror calls for fcntl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -59 lines) Patch
M runtime/bin/eventhandler_android.cc View 1 chunk +14 lines, -6 lines 0 comments Download
M runtime/bin/eventhandler_linux.cc View 2 chunks +12 lines, -4 lines 0 comments Download
M runtime/bin/eventhandler_macos.cc View 1 chunk +12 lines, -4 lines 0 comments Download
M runtime/bin/fdutils_android.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/bin/fdutils_linux.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/bin/fdutils_macos.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/bin/socket_android.cc View 11 chunks +45 lines, -17 lines 0 comments Download
M runtime/bin/socket_linux.cc View 7 chunks +21 lines, -10 lines 0 comments Download
M runtime/bin/socket_macos.cc View 11 chunks +48 lines, -17 lines 0 comments Download
M tools/gn.py View 1 2 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 7 (3 generated)
zra
4 years, 1 month ago (2016-11-11 20:52:20 UTC) #3
siva
lgtm https://codereview.chromium.org/2495003003/diff/40001/runtime/bin/eventhandler_android.cc File runtime/bin/eventhandler_android.cc (right): https://codereview.chromium.org/2495003003/diff/40001/runtime/bin/eventhandler_android.cc#newcode90 runtime/bin/eventhandler_android.cc:90: FATAL("Failed to set pipe fd non blocking\n"); Would ...
4 years, 1 month ago (2016-11-11 22:58:56 UTC) #4
zra
https://codereview.chromium.org/2495003003/diff/40001/runtime/bin/eventhandler_android.cc File runtime/bin/eventhandler_android.cc (right): https://codereview.chromium.org/2495003003/diff/40001/runtime/bin/eventhandler_android.cc#newcode90 runtime/bin/eventhandler_android.cc:90: FATAL("Failed to set pipe fd non blocking\n"); On 2016/11/11 ...
4 years, 1 month ago (2016-11-12 05:15:00 UTC) #5
zra
4 years, 1 month ago (2016-11-12 05:15:20 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
43a506bcc8bc57662c5e348dbf1d4ad38f90e9db (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698