twitter-archive / cloudhopper-smpp

Efficient, scalable, and flexible Java implementation of the Short Messaging Peer to Peer Protocol (SMPP)
Other
382 stars 356 forks source link

Receiving SmppChannelException while the SMSC is still sending response #120

Open MaximeKestemont opened 8 years ago

MaximeKestemont commented 8 years ago

Hi,

My test case is the following : I am trying to send 100 000 SubmitSM request to a production SMSC. In some cases, this test will work correctly, and I will be able to send all the 100 000 sms, and receiving response from the server for each of them.

However, I have sometimes experienced failure, receiving a com.cloudhopper.smpp.type.SmppChannelException : Channel was closed after sending request, but before receiving response. The strange part is, even if the channel seems closed, I am still able to send request, see the request in the logs of the SMSC, which then send me back the response, which I do not receive. It seems that I am thus still able to send requests to the SMSC, but not to receive anything.

My questions are :

Moreover, my quick fix was to unbind and destroy the session, then rebind myself when I encountered this exception. However, the connection was refused, so I had to wait a small period of time (10s) before trying the rebinding, which then worked correctly. Any hindsight on that problem?

Thanks !

lospejos commented 7 years ago

I faced the same error. My details:

  1. Sending about 15 SMSs (not hundreds nor thousends);
  2. My session example: 1 sent, 2 errors, then again 3 sent, 2 errors etc, i.e. without restarting or reconfiguring, errors and succeeded attempts are mixed;
  3. cloudhopper-smpp version is 5.0.9
Eeswar-Surya commented 4 years ago

Year 2020. cloudhopper-smpp version is 5.0.8

  1. Getting the Exception for 5 sms (neither hundreds nor thousands)
  2. isBound returns true
  3. EnquireLink returns SmppChannel Exception.