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

GET request to nsqlookupd times out #41

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

xoen
Copy link

@xoen xoen commented Mar 16, 2016

Krakow makes a request to lookupd to get the list of nsqd nodes. If for any
reason lookupd takes a long time to respond Krakow will wait forever.

Even worst, it seems that this requests block the flow of NSQ messages from
the already discovered nsqd nodes.

Possible fix to #31 Krakow stops processing messages

Krakow makes a request to lookupd to get the list of nsqd nodes. If for any
reason lookupd takes a long time to respond Krakow will wait forever.

Even worst, it seems that this requests block the flow of NSQ messages from
the already discovered nsqd nodes.

Luckily http supports timeouts: https://github.com/httprb/http/wiki/Timeouts

Possible fix to chrisroberts#31 (comment)
@xoen
Copy link
Author

xoen commented May 31, 2016

Any news on this @chrisroberts :)?

PS: This solves the problem when nsqlookupd hangs out (discovery is done via an HTTP request), but it does not solve the problem when nsqd nodes hang out (as far I can tell it's using TCP connections there).

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.

1 participant