Page 1 of 1

Remote side has dropped connection

Posted: Thu Aug 18, 2022 6:10 pm
by aordonez
Hi, I need some help,

The following situation is happening in production environment, nowadays we have around 150 binds connected to different hosts (smpp providers) and suddenly they start to disconnect "Remote side has dropped connection." one by one in short period of time. I analyzed the logs and detect that inetlab for unknown reason does not respect the EnquireLinkInterval configured in this case 20 seconds the debug show as follow:


18.08.2022 11:15:04:DEBUG: 41: (xxx:21001_1) Send PDU: EnquireLink, Sequence: 2
18.08.2022 11:15:41:DEBUG: 14: (xxx:21001_1) Send PDU: EnquireLink, Sequence: 3
18.08.2022 11:20:01:DEBUG:587: (xxx:21001_1) Send PDU: EnquireLink, Sequence: 4
18.08.2022 13:22:07:DEBUG:675: (xxx:21001_1) Send PDU: EnquireLink, Sequence: 6
18.08.2022 13:47:39:DEBUG:614: (xxx:21001_1) Send PDU: EnquireLink, Sequence: 14
18.08.2022 13:51:39:DEBUG:795: (xxx:21001_1) Send PDU: EnquireLink, Sequence: 17
18.08.2022 13:53:37:DEBUG:746: (xxx:21001_1) Send PDU: EnquireLink, Sequence: 19
18.08.2022 14:24:40:DEBUG:777: (xxx:21001_1) Send PDU: EnquireLink, Sequence: 24

Re: Remote side has dropped connection

Posted: Mon Aug 29, 2022 8:26 pm
by alt
Hi aordonez,

What library version are you using?

Re: Remote side has dropped connection

Posted: Wed Aug 31, 2022 3:23 pm
by aordonez
We have the same behavior in 2.9.9, 2.9.19 and 2.9.21 versions, so we suspect the problem is related to the traffic, nowadays we are sending around 100K submits per hour through 160 established bids.

Re: Remote side has dropped connection

Posted: Wed Aug 31, 2022 5:50 pm
by alt
What value have you set for the property ResponseTimeout in SmppClient instance?

The EnquireLink PDU is sent only in idle time. It means it will be sent in 20 seconds after last received PDU from the remote side.

Could you provide more detailed logs?

Re: Remote side has dropped connection

Posted: Mon Sep 05, 2022 2:26 pm
by aordonez
ResponseTimeout is set to 19 seconds and the enquireLinkInterval is set to 20

Re: Remote side has dropped connection

Posted: Wed Sep 07, 2022 8:21 pm
by alt
The smpp session will be dropped when unsuccess response status in EnquireLink is received.

In your case the server could be busy with your messages and the EnquireLinkResp is sent later than 19 seconds. The library already processed the timeout and returned the SMPPCLIENT_RCVTIMEOUT.

The detailed library logs or trace from wireshark could help to give more concrete answer. You can send this to email support@ .