Bug 1448846: Ignore POLLERR on UDP sockets. r=dragana
authorByron Campen [:bwc] <docfaraday@gmail.com>
Mon, 02 Jul 2018 11:52:02 -0500
changeset 427779 fe9c353b57a11241b0ad6095e31136cfc454b085
parent 427778 e2374353593c9c08e9665bcd394eca3db9c69522
child 427780 bf9d73b214fc1cb19fdee03f8cc4891ce37a776a
push id34317
push userccoroiu@mozilla.com
push dateMon, 23 Jul 2018 21:42:55 +0000
treeherdermozilla-central@07414f000aa1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdragana
bugs1448846
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1448846: Ignore POLLERR on UDP sockets. r=dragana MozReview-Commit-ID: 1FxhHbH8Neg
netwerk/base/nsUDPSocket.cpp
--- a/netwerk/base/nsUDPSocket.cpp
+++ b/netwerk/base/nsUDPSocket.cpp
@@ -452,17 +452,17 @@ UDPMessageProxy::GetOutputStream(nsIOutp
 
 void
 nsUDPSocket::OnSocketReady(PRFileDesc *fd, int16_t outFlags)
 {
   NS_ASSERTION(NS_SUCCEEDED(mCondition), "oops");
   NS_ASSERTION(mFD == fd, "wrong file descriptor");
   NS_ASSERTION(outFlags != -1, "unexpected timeout condition reached");
 
-  if (outFlags & (PR_POLL_ERR | PR_POLL_HUP | PR_POLL_NVAL))
+  if (outFlags & (PR_POLL_HUP | PR_POLL_NVAL))
   {
     NS_WARNING("error polling on listening socket");
     mCondition = NS_ERROR_UNEXPECTED;
     return;
   }
 
   PRNetAddr prClientAddr;
   uint32_t count;