SpotlightKid / jack-matchmaker

Auto-connect new JACK ports matching the patterns given on the command line.
GNU General Public License v2.0
73 stars 6 forks source link

Auto reconnect when Jack server is restarted #1

Closed mfr-itr closed 7 years ago

mfr-itr commented 7 years ago

If the Jack server is restarted while matchmaker is running, stdout is flooded with "JackClientSocket::Read time out" messages. It could try to reconnect to the new Jack server.

SpotlightKid commented 7 years ago

Thanks for the report. This is something I also noticed already as well. I will try to have a look into a solution soon.

mfr-itr commented 7 years ago

Nice! Good application BTW, very handy.

SpotlightKid commented 7 years ago

I've added a tentative implementation of the requested feature in commit e512c51 .

jack-matchmaker now tries to connect to JACK until a connection can be established or the maximum number of connection (re-)tries is exceeded (new option -m/--max-tries, default: 0 == infinite tries) and waits for 3 seconds between each connection attempts (change interval with option -I/--connect-interval). When connected and the JACK server is stopped, it signals the shutdown event to jack-matchmaker, which goes into the connection loop again.

Can you please test this and give feedback whether this works for you or you have any suggestions for improvement?

mfr-itr commented 7 years ago

Seems like a good way to handle it. I'll try at home, ping me in a few days if I didn't respond ;)

SpotlightKid commented 7 years ago

I've now released version 0.6.0, which incorporates the changes described above.

mfr-itr commented 7 years ago

Sorry, forgot to test...