Should fix #333:
- 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!
正在显示
请
注册
或者
登录
后发表评论