Skip to content

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
Collaborator

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
Collaborator

Oh nice, I totally missed that somehow...

@sfackler sfackler merged commit c85b2c1 into rust-postgres:master Mar 27, 2023
@sfackler
Copy link
Collaborator

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