[OpenSIPS-Users] Is it a kind of TCP keep alive produced by OpenSIPS?

Răzvan Crainea razvan at opensips.org
Wed Oct 26 17:08:14 CEST 2016


Hi, Rodrigo!

The logs you are tracing are printed when OpenSIPS receives something 
from the client, and then immediately responds back. Due to the fact 
that we don't see any other debug messages, like SIP parsing & stuff, 
makes me think that it is a CRLF pinging - the client periodically sends 
a CRLFCRLF TCP message to OpenSIPS, and OpenSIPS responds with a single 
CRLF. Note that this is different from a TCP keep-alive, where each peer 
send a 0-length TCP message, without any body. That message doesn't even 
get to the application layer.
However, tracing the communication between OpenSIPS and the client 
should confirm the above :).

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 10/26/2016 05:10 PM, Rodrigo Pimenta Carvalho wrote:
>
> Dear OpenSIPS users,
>
>
> In the OpenSIPS log I see:
>
>
> Jan 01 19:30:38 colibri-imx6-jfl opensips[3444]: Jan  1 19:30:38 
> [3451] DBG:core:tcp_read_req: Using the global ( per process ) buff
> Jan 01 19:30:38 colibri-imx6-jfl opensips[3444]: Jan  1 19:30:38 
> [3451] DBG:core:tcp_handle_req: content-length= 0
> Jan 01 19:30:38 colibri-imx6-jfl opensips[3444]: Jan  1 19:30:38 
> [3451] DBG:core:async_tsend_stream: Async successful write from first 
> try on 0x74e13548
> Jan 01 19:30:38 colibri-imx6-jfl opensips[3444]: Jan  1 19:30:38 
> [3451] DBG:core:tcp_read_req: tcp_read_req end
>
> The frequency is 1 time at each 1,5 minute. There is only one client 
> online. I suspect that OpenSIPS uses the socket 0x74e13548 to send 
> messages to such client. The client became online using TCP.
>
> Just to confirm, is this log a result of a TCP keep alive function 
> enabled?
>
> Best regards.
>
>
>
>
> RODRIGO PIMENTA CARVALHO
> Inatel Competence Center
> Software
> Ph: +55 35 3471 9200 RAMAL 979
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20161026/e072c3fd/attachment.htm>


More information about the Users mailing list