rist_auth_handler_set() on client side: connect not called, disconnect called
Hi,
I use rist_auth_handler_set()
to set a connection and a disconnection callback. Due to common code, the callbacks are set in all cases, client and listener.
On the listener side (rist://@...
), the two callbacks are invoked on their respective events.
On the client side, the disconnection callback is invoked but not the connection callback. On this side, I did not expect these callbacks to be invoked, essentially because you already know the peer address, it is in the URL. I have no problem with the callbacks being invoked on the client side, why not.
However, it seems strange that the disconnection callback is invoked while the connection one is not. This seems inconsistent.