-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Thrift connection timeout on TcpClient.Connect() #1159
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
Comments
Good catch, it looks like Hopefully this should suffice, would love to hear your confirmation! |
Thanks for your reply. Agreed it sounds better to pass it through upon creation time. Just calling your attention to a "similar" thing is being done a couple of lines bellow
which sets the tsocket timeout.
|
eddyzanda
added a commit
to eddyzanda/elasticsearch-net
that referenced
this issue
Dec 18, 2014
Changed the Tsocket to timeout using the property from the connection-settings.
Closed via #1163 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Mpdreamz,
We have an app that uses the thriftconnection to talk with elastic-server (es-sever).
We noticed that if es-server is unreachable the client takes long to timeout.
After some checks we changed the Thrift.Transport-socket-sconnect to "honor" the timeout property in the connection settings.
Modified the client connect code from:
to:
What are your thought on this?
The text was updated successfully, but these errors were encountered: