<div dir="ltr">Hi,<div><br></div><div>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.</div><div><br></div><div>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). </div><div><br></div><div>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).</div><div><br></div><div>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).</div><div><br></div><div>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?</div><div><br></div><div>Thank you.</div><div><br></div></div>