<div dir="ltr">I tested that, didn't work.<br><br><div class="gmail_quote">On Thu, Sep 18, 2008 at 11:28 AM, Tony Garnock-Jones <span dir="ltr"><<a href="mailto:tonyg@lshift.net">tonyg@lshift.net</a>></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 again,<div class="Ih2E3d"><br>
<br>
Jonatan Kallus wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
As an aside, on re-reading the protocol, I'm wondering if our scan for<br>
end of frame is incorrect (or specific to ActiveMQ's implementation). A<br>
frame is terminated by a \x00, and not \x00 + \n according to the spec:<br>
<br>
"...the null indicates the end of the frame."<br>
</blockquote>
<br></div>
This could well be it. Looking at readFrame from Stomp.php:<br>
<br>
do {<br>
$read = fgets($this->_socket, $rb);<br>
if ($read === false) {<br>
$this->_reconnect();<br>
return $this->readFrame();<br>
}<br>
$data .= $read;<br>
$len = strlen($data);<br>
} while (($len < 2 || ! ($data[$len - 2] == "\x00" && $data[$len - 1] == "\n")));<br>
<br>
Did you try changing that last line to something like<br>
<br>
($len < 1 || $data[$len - 1] != "\x00");<br>
<br>
?<br><font color="#888888">
<br>
Tony<br>
<br>
</font></blockquote></div><br></div>