Connection recovery flow

Post Reply
TD_AK
Posts: 1
Joined: Mon May 13, 2019 9:56 am

Connection recovery flow

Post by TD_AK » Mon May 13, 2019 10:17 am

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!

alt
Site Admin
Posts: 733
Joined: Tue Apr 25, 2006 9:45 am

Re: Connection recovery flow

Post by alt » Thu May 23, 2019 3:50 pm

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.

Post Reply