diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-15 19:47:26 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-15 19:47:26 +0000 |
commit | 08255e0d690a2667fd442a33e7fbee0d74cdba90 (patch) | |
tree | 80f1be13098cbb8a5487fc126b1c2413b49d27b1 /third_party | |
parent | ba6a6387c4da05368bcbdcc9717115ea328b226b (diff) | |
download | chromium_src-08255e0d690a2667fd442a33e7fbee0d74cdba90.zip chromium_src-08255e0d690a2667fd442a33e7fbee0d74cdba90.tar.gz chromium_src-08255e0d690a2667fd442a33e7fbee0d74cdba90.tar.bz2 |
Updated libjingle diff.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1530037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44685 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/libjingle/mods-since-v0_4_0.diff | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/third_party/libjingle/mods-since-v0_4_0.diff b/third_party/libjingle/mods-since-v0_4_0.diff index 9ae2a94..a9259b6 100644 --- a/third_party/libjingle/mods-since-v0_4_0.diff +++ b/third_party/libjingle/mods-since-v0_4_0.diff @@ -510,6 +510,40 @@ diff -r libjingle-0.4.0/talk/base/physicalsocketserver.cc libjingle/files/talk/b > Close(); > return SOCKET_ERROR; > } +265a256,259 +> LOG(LS_WARNING) << "EOF from socket; deferring close event"; +> // Must turn this back on so that the select() loop will notice the close +> // event. +> enabled_events_ |= kfRead; +402a397 +> virtual bool IsDescriptorClosed() = 0; +452a448,451 +> virtual bool IsDescriptorClosed() { +> return false; +> } +> +490a490,497 +> virtual bool IsDescriptorClosed() { +> // We don't have a reliable way of distinguishing end-of-stream +> // from readability. So test on each readable call. Is this +> // inefficient? Probably. +> char ch; +> return (0 == ::recv(s_, &ch, 1, MSG_PEEK)); +> } +> +546a554,557 +> virtual bool IsDescriptorClosed() { +> return false; +> } +> +916c927,931 +< ff |= kfRead; +--- +> if (pdispatcher->IsDescriptorClosed()) { +> ff |= kfClose; +> } else { +> ff |= kfRead; +> } diff -r libjingle-0.4.0/talk/base/proxydetect.cc libjingle/files/talk/base/proxydetect.cc 205,206c205,206 < const char* list = slist.c_str(); |