Closed slvrtrn closed 5 months ago
Currently, implemented in a branch: https://github.com/ClickHouse/clickhouse-js/compare/main...idle-sockets-timeouts
It needs a rebase to 1.0.0.
General idea: instead of tracking if a socket could be expired while idling and deciding what to do with it when making an HTTP request, just terminate it after (by default) 2500 ms using Node.js Socket.on('free') API.
Socket.on('free')
Currently, implemented in a branch: https://github.com/ClickHouse/clickhouse-js/compare/main...idle-sockets-timeouts
It needs a rebase to 1.0.0.
General idea: instead of tracking if a socket could be expired while idling and deciding what to do with it when making an HTTP request, just terminate it after (by default) 2500 ms using Node.js
Socket.on('free')
API.