Bug 1290365: ignore PULL_HUP to re-enable TURN TCP with hostnames on Linux. r=bwc a=gchang
authorNils Ohlmeier [:drno] <drno@ohlmeier.org>
Tue, 16 Aug 2016 22:48:33 -0700
changeset 349769 fdc2f1d67e3977e4fbc79d0acbb32259eca0f524
parent 349768 264adddee81b8115b9392e20aaeaaaf4a2572a12
child 349770 8bf3072e8e924fc4fbfd150daf4c2106a62bae0e
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)
reviewersbwc, gchang
bugs1290365
milestone50.0a2
Bug 1290365: ignore PULL_HUP to re-enable TURN TCP with hostnames on Linux. r=bwc a=gchang MozReview-Commit-ID: 2caIJP89Abw
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 | PR_POLL_HUP))
+  if (outflags & (PR_POLL_ERR | PR_POLL_NVAL))
     // 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);
 }