Skip to content
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

Max connection lifetime? #101

Open
eproxus opened this issue Apr 3, 2024 · 0 comments
Open

Max connection lifetime? #101

eproxus opened this issue Apr 3, 2024 · 0 comments

Comments

@eproxus
Copy link

eproxus commented Apr 3, 2024

Is there any way to achieve a max connection lifetime in the pool, even for active connections? We're running this in a network with firewalls that kills connections after 1 hour regardless of how active they are. We're seeing a lot of errors in pooler because of closed socket:

{exit,sock_closed,
      [{gen_server,handle_common_reply,8,[{file,"gen_server.erl"},{line,1208}]},
       {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,241}]}]}

Or, alternatively, is there a way for pooler or epgsql to handle that message and self-close the connection process when the socket is closed remotely?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant