Closed GoogleCodeExporter closed 9 years ago
Hi Holitha
Once your session/connection get bounce ,you are creating a new SMPPSession
,But it will cause to intaniate a new Sequence No inside the SMPPSession ,So it
is possible that your SMSC may get duplicate PDU for same command that could be
the reason lose out some of your request .
So my Suggestion would be get the sequence number (If you want use the oracle
sequence OR mysql AUTO _INCREMEENT) from the relational database
Cheers,
Dominic
Original comment by dominic....@gmail.com
on 23 Jun 2010 at 2:14
Hi kolitha,
Unbound loosing session is a common thing. To know why it does happen, you
should investigate via log or capture the TCP packet.
You still can avoid getting lost of your message. When submit message is
success, no exception and you get message id as return, then there is no error.
But when there is an exception occurred, then you have to retry the message
submission on the new session. Also you need to keep a number of outstanding
message, for an example: do not send another message if you already have 10
message having no response yet. Why, the connection or SMSC might busy or in a
problem, so keeping 10 outstanding message would be more wise and easier to
manage.
So the point is:
1. Connection loss is a common (but you still need to investigate the cause)
2. Design a retry mechanism
3. Define a number of outstanding message, and do not send another message if
the outstanding message has reach it maximum limit.
I hope this can help
Original comment by uuda...@gmail.com
on 23 Jun 2010 at 3:05
I am also having trouble with loosing the connection.
My side is (with jSMPP) is after some time loosing the connection and going
from bound to closed, when I try to rebind I get a negative response saying
that I am already bound, so it seems that the connection is only getting
unbound on my side.
I set up a session state listener and try to unbind the link when my state
changes, but this is not working.
Any hints on why is the connection getting lost ?
I traced tcp flow and find that enquire links are working just fine and still
can't find the reason for this, perhaps it is some timeout issue
Original comment by marcel...@gmail.com
on 5 Oct 2010 at 12:06
Original issue reported on code.google.com by
kolitha....@gmail.com
on 9 Jun 2010 at 4:02Attachments: