Closed aTrueSeeker closed 1 year ago
Hello @aTrueSeeker
Adding auto_enquire_link_period: 10000,
to keep the connection active may help you to fix the issue, I am guessing the problem is related to that.
Thanks @elhananjair Yes that was the issue.
I am confused....why all unique smpp have same issue...does each vendor ( reciving message ) and customer ( sending message ) should have same..enquire_link
Some SMSC drops the connection if they don't receive any response from their enquire_link pings.
One way to solve it is sending a pdu response on event like
session.on('enquire_link', (pdu) => {
session.send(pdu.response());
});
If your connection is still being dropped, you have to check with the SMSC the cause.
Knew it @guicuton but thing is this that i am doing on this on vendor side...and some of them oftenly disconnects from our server and throws this error...some of them are super stable but some throws this error.
Hi, I was trying to build a node smpp client that receives incoming messages and my node app keeps crashing with ECONNRESET. Below is what my smpp.js file looks like. After running
node smpp.js
it starts and gets a proper connection andsession.bind_transceiver
also returns success but after the app is idle for a few minutes the app crashes with ECONNRESET. I am using node v18.16.1 and node-smpp v0.6.0-rc.4.Anyone knows what causes this crash and how to handle this properly?
Code:
Error: