airmessage / airmessage-server

AirMessage's native message relay server for Mac
Apache License 2.0
183 stars 12 forks source link

Implement more aggressive lost connection detection #27

Closed tagavari closed 2 years ago

tagavari commented 2 years ago

When the server loses connection to AirMessage Connect, it may take a while for it to pick up on the fact that the connection has been severed and re-establish it. The server should check the health of the connection more frequently.

This can easily be recreated on laptops by running the server, then closing the lid for a few minutes. When the laptop is reopened, the server will still think it is connected, but no clients will be able to connect to it.

Reported by Avibee and others on Discord: https://discord.com/channels/992925221256450068/992929582439202908/1004535441212571769

This may be a duplicate of #13.

aviavi123 commented 2 years ago

Here's a screenshot of server disconnection "no clients running" even though the preferences show I'm connected via my gmail account. The client log is blank, btw. However, sometimes opening AirMessage Android makes the server reconnect with the client.

Screen Shot 2022-08-04 at 10 14 50 PM
tagavari commented 2 years ago

Duplicate of #13