Bug 1290365 - "TURN/TCP with hostnames doesn't work on Linux". r=docfaraday a=gchang
authorNils Ohlmeier <drno>
Tue, 02 Aug 2016 16:07:00 +0200
changeset 342365 36cdcd06bf6f2fa49e5f097ad0fbef0f9630ae84
parent 342364 18420a62cca834f2bbb4786e2c2194826885f62a
child 342366 6b44534d8e744473c3a8a762ebe454f7b749e35e
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);
 }