Apache websocket proxy drops connections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to proxy a websocket through Apache 2.4.7 (running on Ubuntu). The connection is correctly established but if the browser or the server don't send each other data for some time (a minute more or less) new messages coming from the server are not delivered to the browser.
Furthermore, nor the browser or the service on the server seem to realize the connection is somehow broken (they don't throw any error at all).

How can I configure the server in order to avoid this issue?

This is my configuration (the keepalive=On timeout=9999 ttl=9999 part and the TimeOut 99999 ProxyTimeout 99999 part are the result of some failed attempts to fix the issue):

TimeOut 99999
ProxyTimeout 99999
ProxyRequests Off
ProxyPass /somepath ws://127.0.0.1:6080/ retry=60 keepalive=On timeout=9999 ttl=9999
ProxyPassReverse /somepath ws://127.0.0.1:6080/ retry=60

If I istruct _javascript_ to connect directly to the service (which is on the port 6080) the are no issues, so I’m pretty sure the problem is related to Apache.

If i instruct _javascript_ on my webpage to send some data to the server every 30 seconds the connections doesn’t die. So, I think the issue is related to some idle timeout setting, but I can’t figure out which is the right parameter I need to modify.

Thanks,
Luca

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux