[Live-devel] live555 blocked on a select

Sébastien Escudier sebastien-devel at celeos.eu
Wed Feb 17 07:57:00 PST 2010


> If you can track this down some more, please let us know.

Ok, so the client is blocked in RTSPClient.cpp -> getResponse1 line 2191 in a
readsocket call.

The comment in the file says :
  // Keep reading data from the socket until we see "\r\n\r\n" (except
  // at the start), or until we fill up our buffer.
  // Don't read any more than this.

and at this point the buffer (what has been read in the socket) is [1] (404 not
found, ending with \r\n)
So obviously, it won't go any further, because the server won't send anything
more, and live555 client is waiting for another \r\n

This happens in some rare cases, and most of the time, the same answer (404 not
found with no \r\n\r\n at the end) is correctly received and handled by my
live555 client.

Do you have any idea what is wrong in this case ?

Regards,

seb.

[1]
<?xml version=\"1.0\" encoding=\"ascii\" ?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD
XHTML 1.0 Strict//EN\"
\"http://www.w3.org/TR/xhtml10/DTD/xhtml10strict.dtd\">\n<html
lang=\"en\">\n<head>\n<title>Not found</title>\n</head>\n<body>\n<h1>404 Not
found (/vod_03040)</h1>\n<hr />\n<a
href=\"http://www.videolan.org\">VideoLAN</a>\n</body>\n</html>\n554/vod_03040/trackID=0\r\n



More information about the live-devel mailing list