Page 1 of 1

Queue empty error.

Posted: Mon Jan 30, 2012 1:07 am
by NickAskew
Hi Alt,

I am receiving the exception below when I am stress testing the SMPP Server component. I am receiving approximately 250 SubmitSm's per second from a single ESME, and delivering DeliverSm's back to it using SmppServerClient.Deliver within another thread at approximately the same rate.

System.InvalidOperationException was unhandled
Message=Queue empty.
Source=System
StackTrace:
at System.Collections.Generic.Queue`1.Dequeue()
at Inetlab.SMPP.Common.SmppClientBase.quyTZCrLL()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

Regards

Nick

Re: Queue empty error.

Posted: Mon Jan 30, 2012 1:21 pm
by NickAskew
Hi Alexey,

Further information:

The error still occurs even when I don't do any work in the SmppServer events - it happens after receiving 10000+ submissions which have been sent at around 400 per second. It isn't related to me sending the same client DeliverSm's.

Regards

Nick

Re: Queue empty error.

Posted: Mon Jan 30, 2012 1:37 pm
by alt
Hi Nick

I added workaround in version 1.0.12.3.
Please try it again.

Thank you.
Alexey

Re: Queue empty error.

Posted: Mon Jan 30, 2012 2:05 pm
by NickAskew
Works perfectly now, many thanks.