-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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!
- Loading branch information
Showing
4 changed files
with
15 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters