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

feature: SocketTimeout configuration #34

Open
murfffi opened this issue Jan 18, 2025 · 0 comments
Open

feature: SocketTimeout configuration #34

murfffi opened this issue Jan 18, 2025 · 0 comments

Comments

@murfffi
Copy link
Member

murfffi commented Jan 18, 2025

Enable users to configure ConnectTimeout, SocketTimeout in DSN and Connector.
Thrift translates ConnectTimeout, SocketTimeout to DialTimeout
and Conn.SetDeadline respectively.

In addition, if SocketTimeout is less than any deadline in the provided context, Thrift will retry reads (not writes!) up to the context deadline in SocketTimeout increments. Thrift ignores context in all other cases!

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