Remote side has dropped connection

Post Reply
aordonez
Posts: 21
Joined: Wed Jun 05, 2019 11:40 am

Remote side has dropped connection

Post by aordonez » Thu Aug 18, 2022 6:10 pm

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
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Remote side has dropped connection

Post by alt » Mon Aug 29, 2022 8:26 pm

Hi aordonez,

What library version are you using?
aordonez
Posts: 21
Joined: Wed Jun 05, 2019 11:40 am

Re: Remote side has dropped connection

Post by aordonez » Wed Aug 31, 2022 3:23 pm

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.
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Remote side has dropped connection

Post by alt » Wed Aug 31, 2022 5:50 pm

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?
aordonez
Posts: 21
Joined: Wed Jun 05, 2019 11:40 am

Re: Remote side has dropped connection

Post by aordonez » Mon Sep 05, 2022 2:26 pm

ResponseTimeout is set to 19 seconds and the enquireLinkInterval is set to 20
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Remote side has dropped connection

Post by alt » Wed Sep 07, 2022 8:21 pm

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@ .
Post Reply