Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can crash when ::sendto returns -1 (by an exception not caught) #69

Open
folkertvanheusden opened this issue Aug 19, 2021 · 0 comments
Open

Comments

@folkertvanheusden
Copy link
Contributor

If a network interface goes away, e.g. when a VPN is switched off, and rtpmidid was just about to send something through it, it can crash:

terminate called after throwing an instance of 'rtpmidid::exception'
  what():  Could not send all data to metronoom:15115. Sent -1. Network is unreachable
Aborted

That's because lib/rtpserver.cpp and lib/rtpclient.cpp have a sendto method that throws an exception if the ::sendto function called in it returns -1.

For EINTR, see #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant