I will second that. I have seen this same problem in an RTSP client stack provided by a company whose name I will not mention.<br><br><div class="gmail_quote">On Mon, Feb 22, 2010 at 5:26 AM, Sébastien Escudier <span dir="ltr"><<a href="mailto:sebastien-devel@celeos.eu">sebastien-devel@celeos.eu</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;"><div class="im">Quoting Ross Finlayson <<a href="mailto:finlayson@live555.com">finlayson@live555.com</a>>:<br>
<br>
> Perhaps the server is (erroneously) ending its response only with<br>
> \r\n, and not with \r\n\r\n ?<br>
<br>
</div>No,<br>
The response is correctly ended by \r\n\r\n. The body isn't (but that's normal).<br>
<br>
It is a response to a get parameter. The response is a 404 Not found with a<br>
content-length of 316<br>
But live555 doesn't read the 316 bytes length body of the response.<br>
So when the library is reading again the socket, it reads the body of the<br>
previous response, and doesn't find \r\n\r\n, so it blocks.<br>
<br>
The problem is in RTSPClient.cpp in getMediaSessionParameter function, when you<br>
check the responseCode (line 1572). If it's != 200 then you don't read the body<br>
of the message, which stays in the socket.<br>
Don't you think we should read the response body, whatever the response code ?<br>
<br>
PS :<br>
To be clear, what I call the response is :<br>
RTSP/1.0 404 Not found<br>
followed by a content-length, a content type and \r\n\r\n<br>
Then there is the body (text).<br>
<div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Rob Krakora<br>Senior Software Engineer<br>MessageNet Systems<br>101 East Carmel Dr. Suite 105<br>Carmel, IN 46032<br>(317)566-1677 Ext. 206<br>(317)663-0808 Fax<br>