diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-18 23:03:46 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-18 23:03:46 +0000 |
commit | 385978ba3f24d3eaea3de7d6aecb283f08aefccf (patch) | |
tree | f75e10df89d8482ab385e3cba6c00cba59066a62 /base/eintr_wrapper.h | |
parent | ce59605d9f7aa1ba166dff1c36a2b3705a21cff3 (diff) | |
download | chromium_src-385978ba3f24d3eaea3de7d6aecb283f08aefccf.zip chromium_src-385978ba3f24d3eaea3de7d6aecb283f08aefccf.tar.gz chromium_src-385978ba3f24d3eaea3de7d6aecb283f08aefccf.tar.bz2 |
Revert 132842 - If we are using blocking write, when the renderer stop getting the data without notifying the browser, it will hang the browser. This happens with some plugins which use the sync sockets provided by the Pepper.
This patch change CancellableSyncSocket to be non-blocking on sending, so that we don't need to worry the whole browser hangs by one plugin application.
Also, we remove the lock in audio_sync_reader.cc since it is not really needed if we don't set the socket_ to NULL when calling Close(). By doing this we allow the user to close the socket while another thread is writing to the socket.
BUG=121152
TEST=ipc_tests
Review URL: http://codereview.chromium.org/10000004
TBR=xians@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10083064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/eintr_wrapper.h')
0 files changed, 0 insertions, 0 deletions