RealPlayer disconnect as a result of a SETUP response
| Mon, 2008-01-07 12:36 | |
|
Hello all, I'm developing a streaming server which support minimal RTSP commands. I've ran a Darwin server on my PC and was able to stream it's samples into the N95 RealPlayer, I then tried using my own RTSP implementation, in which I managed to receive and reply to OPTION and DESCRIBE request, but when replying to SETUP RealPlayer have stopped indicating that the server had closed the connection. I've tried it with a RealPlayer on my PC (openSUSE 10.2) and did not encounter that problem. Bellow is my RTSP SETUP reply, if you have any idea or suggestion please send it back. RTSP/1.0 200 OK Thanks Ravid |
|






Forum posts: 2
I found the cause. and it's my bad.
When sending the DESCRIBE response I calculated the content-length and added CRLF (\r\n) after the content. The client read up to content length leaving the CRLF in the socket buffer, only when the next packet arrived it read the CRLF and misinterpret them as session disconnection.