mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-29 16:18:55 +00:00
is_connection_error() only matched English keywords like "connection" and "closed", missing localized OS messages on Chinese Windows such as "I/O error: 远程主机强迫关闭了一个现有的连接。 (os error 10054)". This prevented automatic reconnection, causing all subsequent queries in database search to fail after a connection reset. Add "i/o error" detection and Windows socket error code parsing (10053/10054/10057/10058/10060/10061) so reconnect logic triggers regardless of OS locale.