brailcom / speechd

Common high-level interface to speech synthesis
GNU General Public License v2.0
215 stars 63 forks source link

messages of killed clients don't get interrupted #942

Open sthibaul opened 2 months ago

sthibaul commented 2 months ago

Steps to reproduce

Obtained behavior

Expected behavior

Behavior information

sthibaul commented 2 months ago

We could add a QUIT command that clients use when they are leaving (i.e. spd_close), so that speech dispatcher knows they are exiting properly, and did take care of canceling the message if they wanted to.

If speech dispatcher notices a client sockets gets closed without a QUIT command, it should then cancel its messages, since it probably means the client just crashed.