But when i use the same haproxy configuration for NodeJS(websocket) its working fine,I am face issue only with freeswitch On Tue, Jan 12, 2016 at 7:04 PM, Murugan Pandian <manpower13.cse@gmail.com> wrote:
Here is my Haproxy conf
defaults http mode http log global option httplog option dontlognull option http-server-close option forwardfor except 127.0.0.0/8 option redispatch retries 3 timeout http-request 10s timeout queue 1m timeout connect 10s #timeout client 1m timeout client 86400000 timeout server 1m timeout http-keep-alive 10s timeout check 10s maxconn 3000 backend w5fs_scaling balance roundrobin mode http option forwardfor timeout server 30000 timeout connect 4000 cookie SERVERID insert indirect nocache {% if groups[w5fs_tg] is defined%} {% for host in groups[w5fs_tg] %} {% if True %} server freeswitch{{loop.index}} {{ host }}:8081 cookie freeswitch{{loop.index}} weight 1 maxconn 1024 check {% endif %} {% endfor %} {% endif %}
On Tue, Jan 12, 2016 at 6:54 PM, Joshua Gigg <giggsey@gmail.com> wrote:
My initial thoughts would be the timeouts in HaProxy.
http://blog.haproxy.com/2012/11/07/websockets-load-balancing-with-haproxy/
On Tue, 12 Jan 2016 at 13:13 Murugan Pandian <manpower13.cse@gmail.com> wrote:
Hi,
We have tried to run Freeswitch mod_verto(WS) behind Haproxy(WSS). But When i tried to run the client(verto.js websocket connection) disconnected and getting reconnected for every 60sec(1 min). If i make a call, it is getting disconnected and reconnected again for every 1 min.
If i use mod_verto directly without Haproxy it is working fine without any issues. Note: My mod_verto is running on port 8081(WS). But when i tried to run behind my Haproxy running on WSSi am getting the above issue.
Thanks. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org