rtpmidid icon indicating copy to clipboard operation
rtpmidid copied to clipboard

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

Open folkertvanheusden opened this issue 4 years ago • 0 comments

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 https://github.com/davidmoreno/rtpmidid/pull/68

folkertvanheusden avatar Aug 19 '21 19:08 folkertvanheusden