Bug 1290365 - "TURN/TCP with hostnames doesn't work on Linux". r=docfaraday a=gchang
☠☠ backed out by 60ae30593a0b ☠ ☠
authorNils Ohlmeier <drno>
Tue, 02 Aug 2016 16:07:00 +0200
changeset 342241 96d9f3c254fa5866f83a23c902c054df7e9eb6ab
parent 342240 940aa720c00e423769d315c858ec782b38a29626
child 342242 c18bbf3a9ef2b4e4f6dc9b656c24fb1f7751dc69
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdocfaraday, gchang
bugs1290365
milestone49.0
Bug 1290365 - "TURN/TCP with hostnames doesn't work on Linux". r=docfaraday a=gchang
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);
 }