[SR-Users] websocket rd buffer size limit?

Andrew Chen achen at fuze.com
Wed Jan 27 14:33:01 CET 2021


So what engineering is stating is we may need to support up to 65k.  The
video feature to support more video pods will produce large SDP's.

So I got a random MESSAGE to Kamailio to work with TCP 5060 with 70k
content length but when using websocket, it's limited to 64k.

On Wed, Jan 27, 2021 at 5:57 AM Daniel-Constantin Mierla <miconda at gmail.com>
wrote:

> Out of curiosity, how large do you expect the sip messages to be? Event
> with webrtc sdp, I haven't seen sip messages getting closer to 64kB...
>
> Cheers,
> Daniel
> On 26.01.21 22:01, Andrew Chen wrote:
>
> Ok thanks.  I also forgot to mention these are websocket SIP calls to the
> Kamailio.
>
> I also ran into a thread after googling is to update the following in
> tls_server.c
>
> #define TLS_RD_MBUF_SZ 65536
> #define TLS_WR_MBUF_SZ 65536
>
> I will try both options.
>
> Thanks again!
>
> On Tue, Jan 26, 2021 at 1:15 PM Daniel-Constantin Mierla <
> miconda at gmail.com> wrote:
>
>> Hello,
>>
>> this seems to be related to the SIP message max size, not to the tcp
>> buffer size.
>>
>> You have to recompile kamailio after changing BUF_SIZE in the
>> src/core/config.h.
>>
>> Cheers,
>> Daniel
>> On 26.01.21 18:43, Andrew Chen wrote:
>>
>> Hey group,
>>
>> I was wondering if there is a way to control the websocket buffer size to
>> support large SIP messages.  I received the following error when sending
>> content-length of 65000
>>
>> 2021-01-26T17:32:19.251408+00:00 sjomainkama50 kamailio[31871]:
>> 109(32008) WARNING: websocket [*ws_frame.c*:482]:
>> decode_and_validate_ws_frame(): message is too long for our buffer size
>> (65535 / 66151)
>>
>>
>> I am assuming this is controlled  by the tcp_rd_buf params which I have
>> set to 131k:
>>
>>
>> *tcp_*rd_buf_size=131072
>>
>>
>> and this is my tcp_wr_buf params:
>>
>> *tcp_*wq_blk_size=131072
>>
>> *tcp_*conn_wq_max=131072
>>
>>
>>
>> Please advise.
>>
>>
>> Thanks.
>>
>>
>> --
>> Andy Chen
>> Sr. Telephony Lead Engineer
>> achen@ <achen at thinkingphones.com>fuze.com
>>
>>
>>
>> *Confidentiality Notice: The information contained in this e-mail and any
>> attachments may be confidential. If you are not an intended recipient, you
>> are hereby notified that any dissemination, distribution or copying of
>> this
>> e-mail is strictly prohibited. If you have received this e-mail in error,
>> please notify the sender and permanently delete the e-mail and any
>> attachments immediately. You should not retain, copy or use this e-mail or
>> any attachment for any purpose, nor disclose all or any part of the
>> contents to any other person. Thank you.*
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing Listsr-users at lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>> --
>> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
>> Funding: https://www.paypal.me/dcmierla
>>
>>
>
> --
> Andy Chen
> Sr. Telephony Lead Engineer
> 415 516 5535 (M)
> achen@ <achen at thinkingphones.com>fuze.com
>
>
> *Confidentiality Notice: The information contained in this e-mail and any
> attachments may be confidential. If you are not an intended recipient, you
> are hereby notified that any dissemination, distribution or copying of this
> e-mail is strictly prohibited. If you have received this e-mail in error,
> please notify the sender and permanently delete the e-mail and any
> attachments immediately. You should not retain, copy or use this e-mail or
> any attachment for any purpose, nor disclose all or any part of the
> contents to any other person. Thank you.*
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Funding: https://www.paypal.me/dcmierla
>
>

-- 
Andy Chen
Sr. Telephony Lead Engineer
415 516 5535 (M)
achen@ <achen at thinkingphones.com>fuze.com

-- 
*Confidentiality Notice: The information contained in this e-mail and any
attachments may be confidential. If you are not an intended recipient, you
are hereby notified that any dissemination, distribution or copying of this
e-mail is strictly prohibited. If you have received this e-mail in error,
please notify the sender and permanently delete the e-mail and any
attachments immediately. You should not retain, copy or use this e-mail or
any attachment for any purpose, nor disclose all or any part of the
contents to any other person. Thank you.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210127/9ade1c2a/attachment.htm>


More information about the sr-users mailing list