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

Issue 2034433002: Try to tolerate running on contexts with SIGPIPE enabled. (Closed)

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

Description

Try to tolerate running on contexts with SIGPIPE enabled. Although Chromium wisely disables this ancient UNIX bug, the net stack is part of Cronet which may be used in other consumers. Rather than modify the global signal dispositions (bad manners for a library) or propagate this requirement to the callers (also bad manners, if sound), make an attempt to suppress the signal on a per-socket basis. Unfortunately, iOS/OSX and Linux kindly have different APIs for this, so we need to touch two places. BUG=467132 Committed: https://crrev.com/281502752bdcee2f121b99d3a971301b8c271297 Cr-Commit-Position: refs/heads/master@{#398121}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -1 line) Patch
M net/socket/socket_descriptor.cc View 1 2 chunks +18 lines, -1 line 0 comments Download
M net/socket/socket_posix.cc View 1 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
davidben
4 years, 6 months ago (2016-06-01 20:50:35 UTC) #2
mmenke
https://codereview.chromium.org/2034433002/diff/1/net/socket/socket_descriptor.cc File net/socket/socket_descriptor.cc (right): https://codereview.chromium.org/2034433002/diff/1/net/socket/socket_descriptor.cc#newcode42 net/socket/socket_descriptor.cc:42: close(result); closesocket https://codereview.chromium.org/2034433002/diff/1/net/socket/socket_posix.cc File net/socket/socket_posix.cc (right): https://codereview.chromium.org/2034433002/diff/1/net/socket/socket_posix.cc#newcode445 net/socket/socket_posix.cc:445: #if ...
4 years, 6 months ago (2016-06-01 21:45:11 UTC) #3
davidben
https://codereview.chromium.org/2034433002/diff/1/net/socket/socket_descriptor.cc File net/socket/socket_descriptor.cc (right): https://codereview.chromium.org/2034433002/diff/1/net/socket/socket_descriptor.cc#newcode42 net/socket/socket_descriptor.cc:42: close(result); On 2016/06/01 21:45:11, mmenke wrote: > closesocket It's ...
4 years, 6 months ago (2016-06-01 21:50:59 UTC) #4
mmenke
On 2016/06/01 21:50:59, davidben (OOO until 5-31) wrote: > https://codereview.chromium.org/2034433002/diff/1/net/socket/socket_descriptor.cc > File net/socket/socket_descriptor.cc (right): > ...
4 years, 6 months ago (2016-06-01 22:12:15 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2034433002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2034433002/20001
4 years, 6 months ago (2016-06-01 22:42:43 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/239334)
4 years, 6 months ago (2016-06-02 01:55:47 UTC) #9
davidben
On 2016/06/02 01:55:47, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 6 months ago (2016-06-06 19:24:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2034433002/20001
4 years, 6 months ago (2016-06-06 19:25:08 UTC) #12
mmenke
On 2016/06/06 19:24:21, davidben wrote: > On 2016/06/02 01:55:47, commit-bot: I haz the power wrote: ...
4 years, 6 months ago (2016-06-06 19:25:34 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-06 21:03:23 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 21:04:36 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/281502752bdcee2f121b99d3a971301b8c271297
Cr-Commit-Position: refs/heads/master@{#398121}

Powered by Google App Engine
This is Rietveld 408576698