chrisroberts / krakow

Ruby client library for NSQ
Other
99 stars 17 forks source link

GET request to nsqlookupd times out #41

Open xoen opened 8 years ago

xoen commented 8 years ago

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

xoen commented 8 years ago

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).