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

pgwire: improve tail connection health check #5235

Merged
merged 1 commit into from
Jan 8, 2021
Merged

pgwire: improve tail connection health check #5235

merged 1 commit into from
Jan 8, 2021

Conversation

benesch
Copy link
Contributor

@benesch benesch commented Jan 8, 2021

Now that we're using Tokio v1.0, we can improve the check to detect
closed connections in a TAIL operation. Rather than sending a
NoticeResponse, which produces noise in psql, just check whether the
socket has experienced a close event.


This change is Reviewable

Now that we're using Tokio v1.0, we can improve the check to detect
closed connections in a TAIL operation. Rather than sending a
NoticeResponse, which produces noise in psql, just check whether the
socket has experienced a close event.
@benesch benesch merged commit a72873d into main Jan 8, 2021
@benesch benesch deleted the tail-closed branch January 8, 2021 00:36
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.

2 participants