Home › Forums › Support › Automatically reconnect › Reply To: Automatically reconnect
November 8, 2015 at 20:54
#4218
Anonymous
Inactive
Because of how IP/TCP connections work it is not possible to know before attempting to send data that there is an error. The correct approach is to maintain a connection reference and, if when used, there is an error recreate the connection.
An alternative for this is to always use the GetConnection(ConnectionInfo) method that performs a connection test, which if it fails will reestablish the connection.
Regards,
Marc