<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
span.keyword
        {mso-style-name:keyword;
        color:green;}
span.keywordtype
        {mso-style-name:keywordtype;
        color:#604020;}
span.keywordflow
        {mso-style-name:keywordflow;
        color:#E08000;}
span.stringliteral
        {mso-style-name:stringliteral;
        color:#002080;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>HI, I’m testing my freeswitch on Windows (1.2.14) 64 bit and I used pjsip-perf.exe --method=INVITE <a href="sip:2@127.0.0.1:5063">sip:2@127.0.0.1:5063</a> --count=1000 --thread=4<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>After a few hundred calls I start to get <b>Cannot queue any more events..... </b>and about 30 cps. A fast Bing search shows this line of code.<o:p></o:p></p><p class=MsoNormal>Anyone know what this means and how to fix it?<o:p></o:p></p><p class=MsoNormal><b><o:p> </o:p></b></p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:solid #CCCCCC 1.0pt;padding:3.0pt 5.0pt 3.0pt 5.0pt;background:whitesmoke;margin-left:1.5pt;margin-right:6.0pt'><pre style='mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;background:whitesmoke;border:none;padding:0in'><a name=l00040></a><span style='color:black'><a href="http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f6898695930b1"><span style='color:blue;text-decoration:none'>00040</span></a> </span><span class=keyword>static</span><span style='color:black'> </span><span class=keywordtype>void</span><span style='color:black'> <a href="http://docs.freeswitch.org/switch__cpp_8cpp.html#bf63f3ec89e7e6ace32f6898695930b1"><span style='color:blue;text-decoration:none'>event_handler</span></a>(<a href="http://docs.freeswitch.org/structswitch__event.html"><span style='color:blue;text-decoration:none'>switch_event_t</span></a> *<a href="http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325a45"><span style='color:blue;text-decoration:none'>event</span></a>)<o:p></o:p></span></pre><pre style='mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;background:whitesmoke;border:none;padding:0in'><a name=l00041></a><span style='color:black'>00041 {<o:p></o:p></span></pre><pre style='mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;background:whitesmoke;border:none;padding:0in'><a name=l00042></a><span style='color:black'>00042 <a href="http://docs.freeswitch.org/classEventConsumer.html"><span style='color:blue;text-decoration:none'>EventConsumer</span></a> *E = (<a href="http://docs.freeswitch.org/classEventConsumer.html"><span style='color:blue;text-decoration:none'>EventConsumer</span></a> *) <a href="http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325a45"><span style='color:blue;text-decoration:none'>event</span></a>->bind_user_data;<o:p></o:p></span></pre><pre style='mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;background:whitesmoke;border:none;padding:0in'><a name=l00043></a><span style='color:black'>00043 <a href="http://docs.freeswitch.org/structswitch__event.html"><span style='color:blue;text-decoration:none'>switch_event_t</span></a> *dup;<o:p></o:p></span></pre><pre style='mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;background:whitesmoke;border:none;padding:0in'><a name=l00044></a><span style='color:black'>00044 <o:p></o:p></span></pre><pre style='mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;background:whitesmoke;border:none;padding:0in'><a name=l00045></a><span style='color:black'>00045 <a href="http://docs.freeswitch.org/group__events.html#g84d51747affe16447c198259393f7f5f"><span style='color:blue;text-decoration:none'>switch_event_dup</span></a>(&dup, <a href="http://docs.freeswitch.org/structdb__job.html#4802fd1cb648aae4f501dacd55325a45"><span style='color:blue;text-decoration:none'>event</span></a>);<o:p></o:p></span></pre><pre style='mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;background:whitesmoke;border:none;padding:0in'><a name=l00046></a><span style='color:black'>00046 <o:p></o:p></span></pre><pre style='mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;background:whitesmoke;border:none;padding:0in'><a name=l00047></a><span style='color:black'>00047 </span><span class=keywordflow>if</span><span style='color:black'> (<a href="http://docs.freeswitch.org/group__switch__FIFO.html#g741daa24824e798082049129dda769cc"><span style='color:blue;text-decoration:none'>switch_queue_trypush</span></a>(E-><a href="http://docs.freeswitch.org/classEventConsumer.html#2f2dfe6b5ce6d0e0eac6cbdc035dcbd4"><span style='color:blue;text-decoration:none'>events</span></a>, dup) != <a href="http://docs.freeswitch.org/switch__types_8h.html#fedb3923fc3ae51937cef145c5499dc1c65533002f858f1db8ea9a4aa9fd9784"><span style='color:blue;text-decoration:none'>SWITCH_STATUS_SUCCESS</span></a>) {<o:p></o:p></span></pre><pre style='mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;background:whitesmoke;border:none;padding:0in'><a name=l00048></a><span style='color:black'>00048 <a href="http://docs.freeswitch.org/group__log.html#g5a8b2daf3d882cd8c92e7995ef7628ff"><span style='color:blue;text-decoration:none'>switch_log_printf</span></a>(<a href="http://docs.freeswitch.org/switch__types_8h.html#e66733232089cf717202d43a4a8d4db2"><span style='color:blue;text-decoration:none'>SWITCH_CHANNEL_LOG</span></a>, <a href="http://docs.freeswitch.org/switch__types_8h.html#b74279dba7ee171b8b9d3decfcf1358417a4142baa45448bf4f74eb773d24870"><span style='color:blue;text-decoration:none'>SWITCH_LOG_ERROR</span></a>, </span><span class=stringliteral>"Cannot queue any more events.....\n"</span><span style='color:black'>);<o:p></o:p></span></pre><pre style='mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;background:whitesmoke;border:none;padding:0in'><a name=l00049></a><span style='color:black'>00049 <a href="http://docs.freeswitch.org/group__events.html#gd16cb49fa95c53cad45731669de40038"><span style='color:blue;text-decoration:none'>switch_event_destroy</span></a>(&dup);<o:p></o:p></span></pre><pre style='mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;background:whitesmoke;border:none;padding:0in'><a name=l00050></a><span style='color:black'>00050 }<o:p></o:p></span></pre><pre style='mso-margin-top-alt:3.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;background:whitesmoke;border:none;padding:0in'><a name=l00051></a><span style='color:black'>00051 <o:p></o:p></span></pre></div><p class=MsoNormal><a name=l00052></a><span style='color:black'>00052 }</span><o:p></o:p></p></div></body></html>