Skip to content

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