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

add timeout to new tcp connections #774

Merged
merged 5 commits into from
Sep 1, 2022

Conversation

conorbros
Copy link
Member

Closes #769

Copy link
Member

@rukai rukai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
I think we are fine using a hardcoded timeout for a connection because we always want at least some timeout here and its not like a query where we might have to wait for the server to do some complex operation.
3s is possibly a bit short but its what RedisSinkCluster is already doing 🤷

@conorbros conorbros merged commit fe5b4d0 into shotover:main Sep 1, 2022
@conorbros conorbros deleted the tcp-stream-timeout branch September 1, 2022 03:35
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.

Ensure all TcpStream::connect are wrapped in a timeout
3 participants