[Devel] loop detection fix

Klaus Darilion klaus.mailinglists at pernau.at
Tue Sep 12 08:38:06 CEST 2006


Bogdan-Andrei Iancu wrote:
> Juha Heinanen wrote:
> 
>> Bogdan-Andrei Iancu writes:
>> > > 1) it;s much much faster - if  I need to encode all into an ID, I 
>> need > to parse all the elements which prove a bit expensive...not to 
>> count the > encoding; if I do sequential checking with all elements, I 
>> can stop at > the first difference (ex; check first the callid - if 
>> match, continue > with from tag, etc).
>>
>> so when initial request comes in, openser checks if it has existing
>> transaction with the same method, callid and request uri?
>>  
>>
> yes, same elements....instead of parsing and getting all and build the 
> ID, just get (let's say) the callid and check it; if different -> exit; 
> no loop ; if matches, proceed with method name, and so on.
> 
> as you can see, if not a loop, the processed elements is quite less ; 
> you may exit after callid, cseq, uri, etc..

Does it still allow spiraled requests?

regards
klaus



More information about the Devel mailing list