Are you writing your own client code?<br>What language are you using?<br>Have you seen the ESL library in tree that can be used as a client?<br><br>If you are writing your own client:<br> are you following the protocol properly?<br>
 read lines only until you reach 2 newline in a row while collecting headers<br> when you have read 2 newline if there was a content-type you must read that exact number of bytes no more or no less.<br>When you send commands are you terminating them with 2 newlines?<br>
Have you disabled nagle&#39;s algorithm?<br><br>If you lose your framing somewhere you will certainly mess up eventually.<br><br>This is why I wrote the ESL lib for everyone to use.<br><br><br><div class="gmail_quote">On Mon, Nov 9, 2009 at 9:19 PM, Bob Coleman <span dir="ltr">&lt;<a href="mailto:bobc@devassert.com">bobc@devassert.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I am pretty sure I am doing something wrong but here goes.<br>
<br>
I am using outbound event socket running on windows and everytime I<br>
send an api uuid_getvar or uuid_setvar the reply I get back is<br>
fragmented.<br>
<br>
I get the content type and the line that tells me the length, but then<br>
I get a blank line and nothing more coming down the socket. If I try<br>
to read another line after the blank line it blocks.<br>
<br>
eg.<br>
content-type: api/response<br>
content-length: ??<br>
<br>
If I make another call, say just api i get the actual variable<br>
contents i expected from the first call followed by the next content<br>
header??<br>
<br>
I can product a small demo if necessary, and that is my next step for<br>
diagnosing this, ie remove all the back ground stuff and focus on the<br>
problem, but I am hoping someone else has come across this and can<br>
point me in the right direction<br>
<br>
Cheers<br>
<br>
Bob<br>
<br>
_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>