Open dk5ras opened 6 years ago
I've put a log output into line 72 of DAPNETNetwork.cpp to see the error code while reading from a broken socket (router rebooted), but there is no negative error code from m_socket.read() at all when the server has been disconnected. So the recover() mechanism in DAPNETGateway.cpp is never executed, the Gateway just stops working.
As an update, the general stability appears better now, but still when the network changes (for example new IP address on the WAN side) the connection dies.
This problem occurs also when core was restartet. The Gateway seems to work and does not notice broken connection to core and will not reconnect.
In Dapnet Core there is a Ping-Pong-Command to check connection - is this not implemented in Gateway?
I'm not firm in cpp - is it possible to set an timeout in socket-read and send an ping-command to core. If failed - restart conn else go again to read from socket.
I've added keepalives to the TCP connection to DAPNET. I hope that makes things better.
Hi,
It appears that the service stops working when the internet connection is unstable or changes its IP address. MMDVMHost still works, DV operation is not affected, but DAPNET connection breaks. Restarting the dapnetgateway service fixes this.
Ralph, dk5ras.