|
[QODBC ALL] QODBC - QRemote Server Ping Count and Auto-Close Timeout Configuration
Posted by William - QODBC Support on 01 October 2026 09:17 AM
|
|||||||||||||||
[QODBC ALL] QODBC - QRemote Server Ping Count and Auto-Close Timeout ConfigurationProblem Description:When using QODBC over QRemote (remote access to QuickBooks from another machine), connections may unexpectedly close after a period of inactivity or during long-running queries. This is controlled by two settings: the PingTotalCount limit (maximum pings before forced disconnect) and the Auto Close broken connections interval (how quickly a dead connection is detected and closed). Affected products: QODBC Desktop, QRemote Server, QRemote Client Symptoms:
How Ping and Auto-Close Work Together:The ping mechanism and the auto-close timeout work in tandem to manage stale connections:
Configuration via ODBCINST.INI:PingTotalCount is configured manually in the ODBCINST.INI file on the machine where QRemote Client is installed: [QRemote Driver for QuickBooks (32 bit)]
PingTotalCount=10
File location: Recommended values: PingTotalCount should be between 3 and 50. Values above 90,000 are the maximum possible. The default value after installation may be 90,000 (effectively unlimited), which means connections will only close due to network issues or manual intervention. Example Scenarios:Scenario 1 - Hung SQL Statement: A SQL query is executing on the QuickBooks side, but the application crashes before closing the connection. With PingTotalCount=10 and Auto Close=6 minutes, QRemote Server keeps the connection open for 50 minutes (5-minute ping × 10 counts), then aborts the statement and closes the connection automatically. Scenario 2 - Network Disconnect During Query: A network issue interrupts communication between QRemote Client and Server during an active query. With Auto Close=6 minutes, the server detects the lost connection after 6 minutes. Combined with ping timeout, the total close time is approximately 11 minutes. The connection is automatically terminated. Scenario 3 - Long-Running Report Query: A report takes longer than 50 minutes to execute (with default PingTotalCount=10 and Auto Close=6). The connection will be forcefully closed at the 50-minute mark. To prevent this, increase PingTotalCount in ODBCINST.INI (e.g., set it to 100 for an approximate 8-hour window). Additional Notes:
Keywords:PingTotalCount Auto Close QRemote Timeout Connection Closing ODBCINST.INI Ping Interval Stale Connection QRemote Server Connection Management Long Query Timeout
| |||||||||||||||
|
|
|||||||||||||||


