During the inactive time, the following error may appear: Error sending data to the Win32 server = 10054: An existing connection was forcibly closed by the remote host.
Not found yet, but there is a workaround solution. It is assumed that the client enters sleep mode and the connection is terminated.
Enable the option to prohibit sleep mode in the server settings. This setting is disabled by default. To do this:
- Open the Registry Editor
- Go to HKLM\Software\USC\sdbserv.2\Server_key
- In the params parameter, specify the number 512 in the decimal system or 200 in the hexadecimal system. If the value was 0, it should become 512. If it was more than 0, then +512 greater.
- Save the changes and restart the server.
Enable Keep-alive mode for the server. You can do this by adding two parameters to the server registry branch:
- np1kat (DWORD) — the time in the passive state of the channel before sending the first keepalive package, in ms. 2 hours by default. Assign a value of no more than 300000, decimal
- np1kai (DWORD) — the interval for sending keepalive messages, if no confirmation is received, in ms. 1 second by default. Assign a value, for example, 10000.
If you enable the Log network events setting, you will see a string of the type Keep-alive enabled; prot=1; ip=so-and-so; time=300000; interval=10000 or an error message for each new TCP connection in the server protocol.