[SR-Users] secure websocket error in kamailio

Priyaranjan Nayak priyaranjan4169 at gmail.com
Tue Dec 8 12:39:46 CET 2015


Hi Daniel,

I am using version of kamailio 4.2.3 in ubuntu-14.04 LTS OS.
I had changed below configuration before getting the error.

tcp_max_connections=60000
tls_max_connections=60000

tcp_connection_lifetime=3604
tcp_accept_no_cl=yes
tcp_rd_buf_size=16384

I have attached the the kamailio.cfg  file for more information.
Could you please suggest me what needs to be change in kamailio.cfg file ?


On Tue, Dec 8, 2015 at 12:05 PM, Daniel-Constantin Mierla <miconda at gmail.com
> wrote:

> Hello,
>
> what version of kamailio are you using?
>
> Have you increased the value for core parameter tcp_max_connections?
>
> http://www.kamailio.org/wiki/cookbooks/4.3.x/core#tcp_max_connections
>
> Cheers,
> Daniel
>
>
> On 07/12/15 09:32, Priyaranjan Nayak wrote:
>
>
> Hi All,
>
> I am running the kamailio for secure websocket (WSS). While running
> traffic testing the kamailio is not able to take beyond 2300 connection. I
> am getting below error.
>
> 45(12831) ERROR: tls [tls_server.c:243]: tls_fix_connection_unsafe(): tls:
> ssl bug #1491 workaround: not enough memory for safe operation: 208
> 45(12831) ERROR: sl [../../forward.h:247]: msg_send(): tcp_send failed
> 45(12831) ERROR: websocket [ws_handshake.c:113]: ws_send_reply(): sending
> reply
> 46(12832) ERROR: <core> [tcp_main.c:3577]: handle_ser_child(): received
> CON_ERROR for 0x7f03e0b0fa18 (id 651), refcnt 3, flags 0x4018
> 45(12831) WARNING: <core> [tcp_read.c:1642]: handle_io(): F_TCPCONN
> connection marked as bad: 0x7f03e0b0fa18 id 651 refcnt 1
> 44(12830) ERROR: tls [tls_server.c:154]: tls_complete_init(): tls: ssl bug
> #1491 workaround: not enough memory for safe operation: 304
> 44(12830) ERROR: <core> [tcp_read.c:1326]: tcp_read_req(): ERROR:
> tcp_read_req: error reading
>
> I have seen below data in kamailio at the time of getting error.
> shmem:fragments = 57
> shmem:free_size = 16986416784
> shmem:max_used_size = 193649976
> shmem:real_used_size = 193452400
> shmem:total_size = 17179869184
> shmem:used_size = 188516920
>
> Could you please suggest me how can I get more performance from kamailio
> while using WSS ?
>
> Thanks
> Priyaranjan
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> Book: SIP Routing With Kamailio - http://www.asipto.comhttp://miconda.eu
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Thanks
Priyaranjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151208/af34cb14/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kamailio.cfg
Type: application/octet-stream
Size: 25524 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20151208/af34cb14/attachment.obj>


More information about the sr-users mailing list