Backed out changeset 93a54e1c76c1 (bug 1290365) for permacrashing media tests a=backout CLOSED TREE
authorWes Kocher <wkocher@mozilla.com>
Fri, 12 Aug 2016 14:21:41 -0700
changeset 349696 dafd5dce166fb5a0dc33a568fd19513c8359d861
parent 349695 352ba6b9460229871e3031e19f6fcc2c6a6afb25
child 349697 e40ae26e776c825f2255fc15e54d4af759c88d37
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs1290365
milestone50.0a2
backs out93a54e1c76c1602c65d2ba7bd1b6f20a997765e5
Backed out changeset 93a54e1c76c1 (bug 1290365) for permacrashing media tests a=backout CLOSED TREE
media/mtransport/nr_socket_prsock.cpp
--- a/media/mtransport/nr_socket_prsock.cpp
+++ b/media/mtransport/nr_socket_prsock.cpp
@@ -359,17 +359,17 @@ NS_IMPL_ISUPPORTS0(NrSocket)
 
 
 // The nsASocket callbacks
 void NrSocket::OnSocketReady(PRFileDesc *fd, int16_t outflags) {
   if (outflags & PR_POLL_READ & poll_flags())
     fire_callback(NR_ASYNC_WAIT_READ);
   if (outflags & PR_POLL_WRITE & poll_flags())
     fire_callback(NR_ASYNC_WAIT_WRITE);
-  if (outflags & (PR_POLL_ERR | PR_POLL_NVAL))
+  if (outflags & (PR_POLL_ERR | PR_POLL_NVAL | PR_POLL_HUP))
     // TODO: Bug 946423: how do we notify the upper layers about this?
     close();
 }
 
 void NrSocket::OnSocketDetached(PRFileDesc *fd) {
   r_log(LOG_GENERIC, LOG_DEBUG, "Socket %p detached", fd);
 }