Skip to content
  • xians@chromium.org's avatar
    Revert revert 132842 · 5d272095
    xians@chromium.org authored
    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
    
    TBR=tommi@chromium.org
    
    Review URL: https://chromiumcodereview.appspot.com/10124004
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132975 0039d316-1c4b-4281-b951-d872f2087c98
    5d272095