<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi!<br>
<br>
-b is the receive buffer of the socket in the OS (for UDP
tweaking, I do not know if this is relevant for TCP), so not
related to this problem as this problem happens inside Kamailio.<br>
<br>
Actually 15K is rather small, really strange that you get errors.
So, I did some tests:<br>
<br>
1. tcp_rd_buf_size must be increased. The documentation is bad as
it meantions "TCP datagram" but actually means the maximum size of
SIP (or HTTP) message that can be received.<br>
<br>
2. tcp_rd_buf_size is internally limited to 16MBytes. If you need
more, you have to change the code in:<br>
tcp_options.c: { "rd_buf_size", CFG_VAR_INT | CFG_ATOMIC,
512, 16777216, 0, 0,<br>
<br>
3. If you use real large message you may need to increase the
private memory, and if you forward it with tm module, also the
shared memory.<br>
<br>
regards<br>
Klaus<br>
<br>
<br>
Am 02.01.2013 13:59, schrieb Amit Elbaz:<br>
</div>
<blockquote
cite="mid:CALOAO-vcD7G5z3BeL2jhgH8S6dqE9OHJVBXuCcQHzr8mDn8NOQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>this still does not solve the problem.</div>
<div>I've also tried running Kamailio with <b>-b 32768</b>
option.</div>
<div><br>
</div>
<div>here are the logs:</div>
<div><br>
</div>
<div>Jan 2 14:54:24 debdev kamailio[2580]: ERROR: <core>
[tcp_read.c:344]: ERROR: tcp_read: buffer overrun, dropping</div>
<div>Jan 2 14:54:24 debdev kamailio[2580]: ERROR: <core>
[tcp_read.c:1127]: ERROR: tcp_read_req: error reading</div>
<div><br>
</div>
<div>Thanks for your help.</div>
<br>
<div class="gmail_quote">On Wed, Jan 2, 2013 at 1:17 PM, Andrew
Pogrebennyk <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
you may try changing the tcp_rd_buf_size and
tcp_conn_wq_max:<br>
<a moz-do-not-send="true"
href="http://www.kamailio.org/wiki/cookbooks/3.3.x/core#tcp_conn_wq_max"
target="_blank">http://www.kamailio.org/wiki/cookbooks/3.3.x/core#tcp_conn_wq_max</a><br>
<br>
And since this in development mailing list I'd like to point
at what<br>
seem an iaccuracy in documentation: several options refer to
the core<br>
parameter called tcp_write_buf, which isn't described in the
cookbook:<br>
<br>
tcp_conn_wq_max<br>
Maximum bytes queued for write allowed per connection.
Attempting to<br>
queue more bytes would result in an error and in the
connection being<br>
closed (too slow). If *tcp_write_buf* is not enabled, it has
no effect.<br>
<br>
I hope Daniel or someone who knows reads this..<br>
<br>
BR,<br>
Andrew<br>
<div>
<div class="h5"><br>
On 01/02/2013 10:38 AM, Amit Elbaz wrote:<br>
> Hi,<br>
><br>
> While sending a big TCP SIP message (15K+), I get
"tcp_read: buffer<br>
> overrun, dropping" message.<br>
> this happens after a few fragments have been sent,
and then i get this<br>
> message and the connection resets.<br>
> is it possible to set the max-buffer size through
configuration? if so,<br>
> where?<br>
><br>
> Thanks, Amit.<br>
><br>
><br>
</div>
</div>
> _______________________________________________<br>
> sr-dev mailing list<br>
> <a moz-do-not-send="true"
href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
> <a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev"
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
><br>
<br>
<br>
_______________________________________________<br>
sr-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev"
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
sr-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>