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