[Live-devel] RTSP Response was truncated

Dario dmaljur at elma.hr
Mon Sep 8 07:09:05 PDT 2008


Hi.

I sometimes receive folowing errors when closing session.

RTSP response was truncated
RTSP response was truncated
We received a response not ending with <CR><LF><CR><LF>
Failed to read response:
We received a response not ending with <CR><LF><CR><LF>
Failed to read response:
ERROR Closing session

Note that we are using custom made streaming server based on live555 code.

Receiving client ends the session in this way:
- User press "Stop" button.
- customRTSPClient executes Shutdown()

Shutdown code:

 Medium::close(aviOut);   // avitOut is AviFileSink object
 MediaSubsessionIterator iter(*session);
 MediaSubsession* subsession;
 while ((subsession = iter.next()) != NULL) 
        {
         Medium::close(subsession->sink);
         subsession->sink = NULL;
        }

 pThisRTSPClient->teardownMediaSession(*session);  //pThisRTSPClient is RTSPClient object
 
 Medium::close(session);
 Medium::close(pThisMediaClient);

AfterPlayingFunc() is empty. (It's difficult on to merge static functions with object code).

Why does this happens, and does it have any infuense on memory dealocation 
of the session?
Is this the right way to end session? Or this *must* be done in afterPlayingFunc()?



Thanks.





ELMA Kurtalj d.o.o. (ELMA Kurtalj ltd.)
Vitezićeva 1a, 10000 Zagreb, Hrvatska (Viteziceva 1a, 10000 Zagreb, Croatia)
Tel: 01/3035555, Faks: 01/3035599 (Tel: ++385-1-3035555, Fax: ++385-1-3035599 )

Www:
www.elma.hr; shop.elma.hr

E-mail:
elma at elma.hr (elma at elma.hr)
pitanje at elma.hr (questions at elma.hr)
primjedbe at elma.hr (complaints at elma.hr)
prodaja at elma.hr (sales at elma.hr)
servis at elma.hr (servicing at elma.hr)
shop at elma.hr (shop at elma.hr)
skladiste at elma.hr (warehouse at elma.hr)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080908/3b1b2665/attachment.html>


More information about the live-devel mailing list