diff options
author | mallinath@chromium.org <mallinath@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-02 01:38:00 +0000 |
---|---|---|
committer | mallinath@chromium.org <mallinath@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-02 01:38:00 +0000 |
commit | a9e43b8bdb0f489612f3166e35f6c26e7dc68d7d (patch) | |
tree | c856b30f1494fc1f59ea7389d42edc47f680fbe4 /content/browser/renderer_host | |
parent | 08f2fd122063528486c5abd4059a0f07c7b758c1 (diff) | |
download | chromium_src-a9e43b8bdb0f489612f3166e35f6c26e7dc68d7d.zip chromium_src-a9e43b8bdb0f489612f3166e35f6c26e7dc68d7d.tar.gz chromium_src-a9e43b8bdb0f489612f3166e35f6c26e7dc68d7d.tar.bz2 |
Do not close UDP sockets, after interface becomes down.
ERR_INTERNET_DISCONNECTED will be considered as transient error, as interface
especially a wireless can interface can go up and down in a spotty area.
Since we want to use these sockets, if there are any temporary problems
like interface down or some sort. Otherwise application has to be restarted.
BUG=364216
R=sergeyu@chromium.org
Review URL: https://codereview.chromium.org/240663002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267721 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host')
-rw-r--r-- | content/browser/renderer_host/p2p/socket_host_udp.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/content/browser/renderer_host/p2p/socket_host_udp.cc b/content/browser/renderer_host/p2p/socket_host_udp.cc index c864728..77c817e 100644 --- a/content/browser/renderer_host/p2p/socket_host_udp.cc +++ b/content/browser/renderer_host/p2p/socket_host_udp.cc @@ -41,7 +41,8 @@ bool IsTransientError(int error) { error == net::ERR_ADDRESS_INVALID || error == net::ERR_ACCESS_DENIED || error == net::ERR_CONNECTION_RESET || - error == net::ERR_OUT_OF_MEMORY; + error == net::ERR_OUT_OF_MEMORY || + error == net::ERR_INTERNET_DISCONNECTED; } } // namespace @@ -287,7 +288,7 @@ void P2PSocketHostUdp::HandleSendResult(uint64 packet_id, int result) { return; } VLOG(0) << "sendto() has failed twice returning a " - " transient error. Dropping the packet."; + " transient error. Dropping the packet."; } message_sender_->Send(new P2PMsg_OnSendComplete(id_)); } |