[asterisk-dev] Re: chan_sip - performance, and OPTIONS poking for 1000s of peers

Ryan Mitchell rjm at tcl.net
Sun Nov 26 22:10:49 MST 2006


Good point, thanks.  rand() w/o locking is fine, I was just
copying-and-pasting w/o thinking.
> Would this code get run for each OPTION packet sent? If so, perhaps a
> less expensive random function could be found. Or maybe
> thread_safe_rand is already cheap enough, it just seems overkill for
> something with such a low requirement for randomness quality.
>
>
> /Benny



More information about the asterisk-dev mailing list