Queue empty error.

.NET library for SMPP protocol
Locked
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Queue empty error.

Post by NickAskew » Mon Jan 30, 2012 1:07 am

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
ProcessFlows UK Ltd
http://www.processflows.co.uk/
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Re: Queue empty error.

Post by NickAskew » Mon Jan 30, 2012 1:21 pm

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
ProcessFlows UK Ltd
http://www.processflows.co.uk/
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Queue empty error.

Post by alt » Mon Jan 30, 2012 1:37 pm

Hi Nick

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

Thank you.
Alexey
NickAskew
Posts: 60
Joined: Tue Oct 07, 2008 1:35 pm

Re: Queue empty error.

Post by NickAskew » Mon Jan 30, 2012 2:05 pm

Works perfectly now, many thanks.
ProcessFlows UK Ltd
http://www.processflows.co.uk/
Locked