-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add client_idle_timeout option #165
Conversation
Let’s call this the same thing as pgbouncer |
the terms downstream/upstream offer more specific and clear definitions and we are already using them in the project |
Yeah but people will be looking for equivalent configs. |
👍 on The current implementation is great as is, because it seems you only want to enable the timeout in certain scenarios. Although I believe the current implementation would not close the connection if it asks for a query and then forgets (or is too slow) to read it for some reason, right? In any case, if you wanted to enable the timeout on most |
Yeah, that is not covered
@josevalim, what would you recommend using for timeouts? Should I use |
It really depends on the nature of timeouts. Sometimes send_after. Sometimes you can store timestamps on the state and compare when messages arrive, etc. Once you have more details, let us know, and we will gladly discuss :) |
This PR adds a configurable option to prevent zombie issues and enables keepalive in incoming connections.
client_idle_timeout
oridle_timeout_downstream
??