diff options
author | hubbe@chromium.org <hubbe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-21 00:18:29 +0000 |
---|---|---|
committer | hubbe@chromium.org <hubbe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-21 00:18:29 +0000 |
commit | 0e8a7916cb24dc7617d254b3d4bd48441fb7723a (patch) | |
tree | 53d0201fce5e7a54a0161ffbf84f2c83e29c7a28 /printing/page_number_unittest.cc | |
parent | 40e0d75498a18c96285416302b0fb6318dbc0997 (diff) | |
download | chromium_src-0e8a7916cb24dc7617d254b3d4bd48441fb7723a.zip chromium_src-0e8a7916cb24dc7617d254b3d4bd48441fb7723a.tar.gz chromium_src-0e8a7916cb24dc7617d254b3d4bd48441fb7723a.tar.bz2 |
Fix posix IPC channel hanging problem.
If a channel closes right before a send call, listeners might not be notified of
the problem, which can cause hangs. This CL fixes that and adds a test that makes
sure that this does not happen in the future.
This is similar to cl/150893002, but takes a slightly different approach to how to
make sure everything happens in the right order. In particular, it avoids closing
the socket (and calling OnChannelError()) from Send().
BUG=338709
Review URL: https://codereview.chromium.org/172773002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252430 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/page_number_unittest.cc')
0 files changed, 0 insertions, 0 deletions