What happend when i get disconnect event?

Post Reply
developerlearn999
Posts: 85
Joined: Thu Jun 20, 2019 9:34 am

What happend when i get disconnect event?

Post by developerlearn999 » Tue Sep 03, 2019 8:07 am

Hi,i had in the last couple of days disconnection.
when this happend(in time of sending messages in a bulk : SubmitSmResp[] results = await _client.Submit(pdus.ToArray());)
1. is is possible that this will cause and empty response?
2. what happend to all the messages the are in the buffer? how can i check how many messages wait to be sent?

Thanks
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: What happend when i get disconnect event?

Post by alt » Tue Sep 03, 2019 5:33 pm

1. When client is disconnected during submission, your application should receive SubmitSmResp's with status SMPPCLIENT_NOCONN for all messages.
2. There is IncompleteRequests metric in the library https://docs.inetlab.com/smpp/v2/articl ... ml#metrics
developerlearn999
Posts: 85
Joined: Thu Jun 20, 2019 9:34 am

Re: What happend when i get disconnect event?

Post by developerlearn999 » Wed Sep 04, 2019 6:59 am

the metric : IncompleteRequests, where all this messages stored? or you just count them and remove from the send queue?
developerlearn999
Posts: 85
Joined: Thu Jun 20, 2019 9:34 am

Re: What happend when i get disconnect event?

Post by developerlearn999 » Thu Sep 05, 2019 8:50 am

Hi, i tested and saw that the IncompleteRequests is counting down on each message sent.
i dossconnected my network cable and saw the number stop from chaning, but what happens to the mesages?
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: What happend when i get disconnect event?

Post by alt » Thu Sep 05, 2019 9:34 pm

Incomplete requests/commands are stored in SmppClient in private collection. It is waiting for corresponding responses and sets them to result value of async Submit method.
IncompleteRequest metric increases when you submit a request and decreases when client receives a response.

When client disconnects all incomplete requests should get generated responses with status SMPPCLIENT_NOCONN.
developerlearn999
Posts: 85
Joined: Thu Jun 20, 2019 9:34 am

Re: What happend when i get disconnect event?

Post by developerlearn999 » Sun Sep 08, 2019 6:06 am

When client disconnects all incomplete requests should get generated responses with status SMPPCLIENT_NOCONN.
i tested this point and they get stuck in the awai line
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: What happend when i get disconnect event?

Post by alt » Sun Sep 08, 2019 6:48 am

Please test with 2.7.0 version.
developerlearn999
Posts: 85
Joined: Thu Jun 20, 2019 9:34 am

Re: What happend when i get disconnect event?

Post by developerlearn999 » Sun Sep 08, 2019 11:20 am

tested.
1. SubmitSmResp[] results = await _client.Submit(pdus.ToArray());) ->fixed!
2. _client.ReceiveBufferSize
_client.SendBufferSize
can be set
3. speed issue which can pass 100/sec->still under test i will update
developerlearn999
Posts: 85
Joined: Thu Jun 20, 2019 9:34 am

Re: What happend when i get disconnect event?

Post by developerlearn999 » Sun Sep 08, 2019 1:41 pm

THE SPEED LIMIT FIXED AS WELL!
when do you plan to release a stable release?
Post Reply