Originally Posted by Kipper1258
Hopefully someone can help me with this. I've notice that OpenCPN
closes the TCP port and opens a new one if it does not see any NMEA sentences within about 30 seconds. Is there anywhere I can configure that timeout and increase it to what I need. This behavour is causing some of the NMEA feed devices I use to fall over because too many sockets have been opened. TIA.
It is a hard coded 5 second timer. If no data is received for 1 second then a counter is decremented. It starts at 5 and when the counter hits zero then O closes the socket and waits about 5 seconds and tries to reopen the connection.
It would not be hard to make both of these values a setting in the configuration file. Submit a flyspray enhancement request and try to describe in detail what you need and why it is important.
But really, these other devices you describe are technically "broken". They should also have timeouts on their connections and close them so the sockets can be reused. So it appears you are asking for a bandaid and perhaps the best medicine is to get these other devices to behave properly.