You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ConnectToNSQLookupd() only returns an error if it cannot parse the address argument, or if the consumer is in the wrong state (for example, no message handler added).
Then, this function primarily adds this address to a list, which is used to query (and, effectively, retry) periodically. It is typical to add a handful of nsqlookupd (3 or 5 or so). Occasionally one will have to reboot or something and the query will fail, but another will work. Then the one that failed will come back but another will be temporarily out of service. So this function is not really about connecting immediately, but about adding to a list to retry periodically.
Hello,
When trying to call ConnectToNSQLookupd, even if nsqlookupd is not reachable, the function will return nil. Is that the expected behavior ?
Thanks.
The text was updated successfully, but these errors were encountered: