Lost of Connection
Lost of connection can be caused by :
- Router crash/reboot. Any of the routers along the route from one side to the other may crash or be rebooted; this causes a loss of connection if data is being sent at that time. If no data is being sent at that exact time, then the connection is not lost.
- Network cable unplugged. Any network cables unplugged along the route from one side to the other will cause a loss of connection without any notification.
Lost of connection in Inetlab.SMPP library is detected within ENQUIRE_LINK request or when any other SMPP PDU is being sent. It can happen that a client detects disconnection early than a server. If server is configured to allow only one connection for SMPP account it can reject subsequent bind request by sending BIND_RESP with status ESME_RALYBND. When server detects staled connection it accepts bind request again.
If you face such situation in your application you need to reconnect to SMPP provider in 1-5 Minutes. Inetlab.SMPP library also provides connection recovery feature.