ClickHouse/clickhouse-js

Improve sockets housekeeping mechanism

slvrtrn opened this issue · 0 comments

Currently, implemented in a branch: 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.