Page 1 of 1

resubmit message part on throttling

Posted: Wed Jul 15, 2015 1:02 pm
by mobilyws
hi alt

some time i got throttling error on a message part

is there is any way to resubmit this message part when i got throttling?

regards

Re: resubmit message part on throttling

Posted: Wed Oct 26, 2016 10:51 am
by murtz
Hi mobilyws,

Did you find a way to resubmit failed part in case of throttling or any other error?

please share your workaround

thanks

Re: resubmit message part on throttling

Posted: Sat Oct 29, 2016 9:04 pm
by alt
One possible way how to handle THROTTLED status

Code: Select all


        _client.evSubmitComplete += (sender, response) =>
                                            {
                                                if (response.Status == CommandStatus.ESME_RTHROTTLED)
                                                {
                                                    //allow library to assign next sequence number by submitting.
                                                    response.Request.Sequence = 0;

                                                    //make a delay
                                                    Thread.Sleep(1000);

                                                    // or try to change speed limit
                                                    _client.SendSpeedLimit = 2f / 60f;

                                                    //Resubmit PDU
                                                  _client.SubmitAsync(response.Request);   
                                                }
                                                
                                                
                                            };