• Iñaki Baz Castillo's avatar
    Should fix #333: · 49824baf
    由 Iñaki Baz Castillo 提交于
    - Do not close RTC::UdpSocket or RTC::TcpConnection when
      uv_udp_try_send() or uv_try_write() fail due to an unexpected error
      other than EAGAIN.
    - Otherwise, while reading from a TcpConnection it my happen that there
      are more than a single "packet". If the first packet is a STUN request
      and the IceServer generates a sync response for it, and
      TcpConnection::Write() fails for unknown reason and we delete the
      TcpConnection, the reading process would continue with the second
      "packet", meaning that we are in a deallocated TcpConnection
      instance and BUMP!
    49824baf
UdpSocket.cpp 6.3 KB