[Live-devel] Callback not being called in case of unknown response

Ross Finlayson finlayson at live555.com
Wed Oct 6 02:38:50 PDT 2010


>foundRequest is NULL because the response does not include a CSeq value.

Can you fix the server? :-)


>Would there be a way to tell the application we received something invalid in
>this case ?

Mumble...  Probably.  In principle, each request is supposed to have 
a corresponding response, and responses are supposed to come back in 
order, so if the response doesn't include a CSeq - but is otherwise 
valid - then we can generally assume that it was intended for the 
first request in the 'awaiting reponse' queue.

So, if you change line 1448 from
           } else if (request->cseq() == cseq) {
to
           } else if (request->cseq() == cseq || cseq == 0) {
then things should work in this case.
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list