[Freeswitch-users] Sending keepalives on Verto websocket
Anthony Minessale
anthony.minessale at gmail.com
Fri Oct 6 03:58:35 UTC 2017
Or, file a similar request with nginx to not do that behavior,
On Thu, Oct 5, 2017 at 11:07 PM Chad Phillips <chad at apartmentlines.com>
wrote:
> I've switched to using Nginx to proxy Verto websockets, and have run into
> a small snag: by default, if Nginx doesn't read any data from a proxy
> backend within 60 seconds, it closes the connection, even for websockets.
>
> It appears the recommended solution is to have the server send some kind
> of regular keepalive. I poked around in mod_verto.c and found a
> 'request.keepalive' variable, but I'm unclear how to set that in the
> request, and/or if it even accomplishes what I'm wanting.
>
> I've solved the issue for now by periodically sending a JSON RPC 'echo'
> request along the websocket every 50 seconds, and the reply from the server
> is enough to keep the connection open. This is fine, but I am curious if
> there's a way to do it just from the server side, and if not, if it's worth
> it to add a setting to enable that functionality?
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
--
Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬
☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞
http://twitter.com/FreeSWITCH
☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
<http://freeswitch.org/g+>*
ClueCon Weekly Development Call
☎ sip:888 at conference.freeswitch.org ☎ +19193869900
https://www.youtube.com/watch?v=oAxXgyx5jUw
https://www.youtube.com/watch?v=9XXgW34t40s
https://www.youtube.com/watch?v=NLaDpGQuZDA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20171006/45eac81d/attachment.html>
More information about the FreeSWITCH-users
mailing list