questdb / nodejs-questdb-client

QuestDB Node.js Client
35 stars 8 forks source link

TCP keepalive for ILP socket #17

Closed glasstiger closed 1 year ago

glasstiger commented 1 year ago

Adding TCP keepalive to the ILP socket connection to avoid disconnects caused by client inactivity. Should work in most cases; if the connection goes through a firewall this solution might not be good enough. In that case users could add empty messages on application layer probably to keep the connection alive. The long term solution is definitely to improve the client further and implement keepalive on ILP protocol level (or whatever will be replacing it).