On 07/17/2015 04:07 AM, Daniel-Constantin Mierla wrote:

3) in write_function(), it seems that for successive calls of the
function one extra byte is added to the size. It is intended for keeping
ending '\0', but should be enough only once. Could be harmless (few
extra bytes allocated, when not really needed), but is important to know
that actual value is up to stream.pos+1 (to include the '\0'), not to
stream.curr_size.

I believe that's an oversight on my part, as I was the one who made major changes to that function to support large responses. I will correct and commit.

--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to