inseven / reconnect

Psion connectivity for macOS
GNU General Public License v2.0
13 stars 0 forks source link

Open 'My Psion' browser windows don't recover from connection restarts #71

Open jbmorley opened 1 month ago

jbmorley commented 1 month ago

There are a number of scenarios where the connection can get restarted:

I'm pretty sure the browser window will stop working after each of these (though likely for slightly different reasons).

@kapfab has noticed the following in logs:

ncp: Ignored disconnect

I'm fairly sure this is related to the browser window (rfsv) going through the process of attempting to restablish a connection to ncpd after it's been restarted in-process due to one of the above scenarios.

jbmorley commented 1 month ago

Right now the in-process restarts of ncpd do their best to reset the global ncpd state but it's quite possible I've missed something. However, this looks like something is trying to disconnect from ncpd that ncpd doesn't know about. Perhaps I'm failing to terminate ncpd correctly and the rfsv hasn't noticed the shutdown itself.