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 Review-Url: https://codereview.chromium.org/2034433002 Cr-Commit-Position: refs/heads/master@{#398121}
Showing
Please register or sign in to comment