Page 1 of 1

What happend when i get disconnect event?

Posted: Tue Sep 03, 2019 8:07 am
by developerlearn999
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

Re: What happend when i get disconnect event?

Posted: Tue Sep 03, 2019 5:33 pm
by alt
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

Re: What happend when i get disconnect event?

Posted: Wed Sep 04, 2019 6:59 am
by developerlearn999
the metric : IncompleteRequests, where all this messages stored? or you just count them and remove from the send queue?

Re: What happend when i get disconnect event?

Posted: Thu Sep 05, 2019 8:50 am
by developerlearn999
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?

Re: What happend when i get disconnect event?

Posted: Thu Sep 05, 2019 9:34 pm
by alt
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.

Re: What happend when i get disconnect event?

Posted: Sun Sep 08, 2019 6:06 am
by developerlearn999
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

Re: What happend when i get disconnect event?

Posted: Sun Sep 08, 2019 6:48 am
by alt
Please test with 2.7.0 version.

Re: What happend when i get disconnect event?

Posted: Sun Sep 08, 2019 11:20 am
by developerlearn999
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

Re: What happend when i get disconnect event?

Posted: Sun Sep 08, 2019 1:41 pm
by developerlearn999
THE SPEED LIMIT FIXED AS WELL!
when do you plan to release a stable release?