[SR-Users] TCP read/write buffer size on per connection or per module basis

M S shaheryarkh at gmail.com
Tue May 2 13:02:00 CEST 2017


Hi,

I have a kamailio v4.4.5 deployment that serves TCP clients for SIP and
XCAP requests (without SIP presence). The kamailio's core TCP parameters
allow us to set TCP read and write buffer sizes which are set globally for
all TCP connections.

However, i noticed that in general SIP over TCP request is much smaller
(<8KB for audio + video SIP INVITE request) then XCAP requests (say to
support up to 500 contacts we need TCP buffers =~ 64KB).

So, if I set global TCP buffer size according to XCAP service needs (e.g.
64KB), they waste too much RAM for SIP connections (assuming max SIP packet
is  8KB, there is 56KB buffer space wasted per connection).

On the other hand, if i set global TCP buffer sizes to SIP service needs
(e.g. 8KB) then it is insufficient for XCAP (only 70-80 contacts would fix
in XCAP list).

Therefore, i am looking for a way to allow TCP buffer size settings per
connection OR per module basis. Is it possible? If so then how?

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170502/d0aeaa17/attachment.html>


More information about the sr-users mailing list