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

wire through knob for TCP user timeout #1007

Merged
merged 4 commits into from
Mar 27, 2023

Conversation

pH14
Copy link
Contributor

@pH14 pH14 commented Mar 24, 2023

TCP user timeouts are pretty useful, especially in conjunction with the existing connect timeout / keepalive settings. This adds a new config value, allowing us to set a user timeout on the socket similar to the keepalive setting.

@sfackler
Copy link
Owner

sfackler commented Mar 24, 2023

Does this setting exist in psql? I would prefer to mirror its configuration options.

@pH14
Copy link
Contributor Author

pH14 commented Mar 24, 2023

It should! It's one of the libpq params: https://www.postgresql.org/docs/15/libpq-connect.html#LIBPQ-PARAMKEYWORDS

@sfackler
Copy link
Owner

Oh nice, I totally missed that somehow...

@sfackler sfackler merged commit c85b2c1 into sfackler:master Mar 27, 2023
@sfackler
Copy link
Owner

Thanks!

@pH14
Copy link
Contributor Author

pH14 commented Mar 27, 2023

🙇 thank you @sfackler!

@benesch
Copy link
Contributor

benesch commented Mar 28, 2023

Oh nice, I totally missed that somehow...

(It's new in v12, so you might've been looking at an old version of the docs.)

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

Successfully merging this pull request may close these issues.

3 participants