Query returns error "Read ECONNRESET" after some idle time
thelindat opened this issue · 0 comments
thelindat commented
Due to a regression in node-mysql v3.3.5, connections may close after some idle time and fail to reopen. This affects versions of oxmysql starting from v2.7.3. The issue was resolved in node-mysql v3.9.9, and will be included in the next oxmysql release (v2.11.0), pending the NodeJS v20 update.
Adding keepAliveInitialDelay=10000
to your mysql connection string should resolve the issue for now.