Implement strategy to handle idle connections #116
Labels
enhancement
New feature or request
networking
Issues relating to either the networked server or client
Milestone
Original issue is in comment 2.
@daxpedda introduced max_idle_timeout in fabruic, which offers a simple solution to the problem, but after thinking about it, we need more logic in BonsaiDb itself to handle this in ways that I would want as a database administrator.
The Fabruic setting can only be done at initialization time, and it doesn't impact WebSocket clients. To me, BonsaiDb's idle strategy needs to work similarly for all types of connections. Additionally, if we can't turn on or off the idle timeout, then features like PubSub start requiring reconnection to function. Finally, authentication requires a back-and-forth negotiation, and we shouldn't force clients to reconnect and reauthorize unless absolutely necessary.
Thus, here's what I think we should do:
KeepAlive
on bothRequest
andResponse
, perhaps with unique names to indicate the direction of flow.The text was updated successfully, but these errors were encountered: