[SR-Users] how to enable tcp_write_buf?

Dmitri Savolainen savolainen at erinaco.ru
Wed Aug 15 17:53:11 CEST 2018


Hi, Juha
This issue is discussed here  https://github.com/kamailio/kamailio/pull/1376

As temporary solution  i use jsonrpcs fifo for big results.
For example
cat /tmp/kamailio_jsonrpc_reply_fifo > lastcontact.dump & echo '{"jsonrpc":
"2.0", "method": "htable.dump", "params":["last_contact"], "reply_name":
"kamailio_jsonrpc_reply_fifo", "id": 1 }' > /tmp/kamailio_jsonrpc.fifo


On 15 August 2018 at 18:23, Juha Heinanen <jh at tutpro.com> wrote:

> I tried to issue mtree.list command using xmlrpc query that would result
> in large response, and got error
>
> Aug 15 18:12:07 char /usr/bin/sip-proxy[10348]: ERROR: <core>
> [core/tcp_main.c:618]: _wbufq_add(): (221375 bytes): write queue full or
> timeout  (0, total 0, last write 55534052 s ago)
> Aug 15 18:12:07 char /usr/bin/sip-proxy[10348]: ERROR: xmlrpc
> [xmlrpc.c:811]: send_reply(): Error while sending reply
> Aug 15 18:12:07 char /usr/bin/sip-proxy[10367]: ERROR: <core>
> [core/tcp_main.c:3551]: handle_ser_child(): received CON_ERROR for
> 0x7f112ad22be0 (id 5), refcnt 3, flags 0x4018
>
> I though that perhaps I could get rid of the error by increasing value
> of core var tcp_conn_wq_max.  Description of the var tells:
>
>   Maximum bytes queued for write allowed per connection. Attempting to
>   queue more bytes would result in an error and in the connection being
>   closed (too slow). If tcp_write_buf is not enabled, it has no effect.
>
> What is tcp_write_buf and how to enable it?  I could not find anything
> about it in core cookbook.
>
> -- Juha
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>



-- 
Savolainen Dmitri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180815/dc5dc213/attachment.html>


More information about the sr-users mailing list