Page 1 of 1

Connection recovery flow

Posted: Mon May 13, 2019 10:17 am
by TD_AK
Hey!
Didn't find any information about connection recovery workflow.
To enable connection recovery we set ConnectionRecovery to true.
Will evConnected be raised during recovery?
Will recovery attempt be performed when UnBind received from SMSC?
Do we need to reestablish bind when recovery succeeded?

Thank you!

Re: Connection recovery flow

Posted: Thu May 23, 2019 3:50 pm
by alt
Connection recovery works only after first successful bind. SmppClient triggers following events by connection recovery:
event evConnected - when connected to the server.
event evRecoverySucceeded - when bind was successful.
event evDisconnected - when bind was failed.

Connection won't be recovered when you call direct the method client.Disconnect() .

Note: if you send Bind in evConnected event handler method, it can cause SmppException when second Bind method is called for already bound client.