[SR-Users] Websockets Keep-Alive

Peter Dunkley peter.dunkley at crocodilertc.net
Thu Sep 26 14:07:57 CEST 2013


The Kamailio websocket module sends WebSocket pongs in response to
WebSocket pings from websocket clients.  It can also be configured to send
WebSocket pings on idle connections (and does so by default).

There is no TCP level stuff here, this is all at the WebSocket layer.  Take
a look at the "keepalive_.*" modparams for the websocket module.

The TCP connection timeout should be set to something a little greater than
the WebSocket ping interval is set to.

Regards,

Peter


On 26 September 2013 12:37, Juha Heinanen <jh at tutpro.com> wrote:

> Klaus Darilion writes:
>
> > Question to the experts: Is keep-alive for the Websockets TCP connection
> > automatically done by the Websockets Layer (client or server), or do I
> > have to do it manually (nathelper pinging).
>
> since websockets uses tcp, kamailio running on linux should
> automatically do tcp level keepalives.
>
> -- juha
>
> _______________________________________________
> 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
>



-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130926/bf9a558f/attachment.html>


More information about the sr-users mailing list