bartbes wrote:According to the documentation it actually returns 0 on success, but I'm not sure not being able to connect is a failure condition for it. (Because otherwise, why would it queue? It's probably trying to reconnect behind the scenes.)
This is my debug capture:
Even fake ip and port can't change the result... so I am very confuse about the connect function.
I guess the lua bindings must change that then, though I could find no evidence of that. Anyway, as I mentioned it probably only returns failure when it can't even attempt to connect, but success when it fails to connect, because it tries to reconnect in the background after.