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

Timeout with hanging server is not observed #632

Open
yschimke opened this issue Sep 28, 2018 · 1 comment
Open

Timeout with hanging server is not observed #632

yschimke opened this issue Sep 28, 2018 · 1 comment

Comments

@yschimke
Copy link
Contributor

yschimke commented Sep 28, 2018

from arctic import Arctic
a = Arctic('myhost:27116')
b = a.list_libraries()
b
[u'dimos.test']

kill -STOP the server

b = a.list_libraries()

Hangs indefinitely. n.b. if socket is open, but mongo not responding e.g. then 20 second timeout is observed.

essentially set a read timeout instead of a connect timeout

@dimosped
Copy link
Contributor

The default timeout values we use are here:
https://github.com/manahl/arctic/blob/master/arctic/arctic.py#L71
socketTimeoutMS
connectTimeoutMS
serverSelectionTimeoutMS

Their explanation is here:
https://docs.mongodb.com/manual/reference/connection-string/#server-selection-and-discovery-options

Question is how long we wait for a query response, given the TCP connection is established and alive.
i.e. application level timeout without receiving an ACK for the executed query

@shashank88 shashank88 self-assigned this Jan 15, 2019
@shashank88 shashank88 removed their assignment May 14, 2019
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

3 participants