apache in proxy mode introduces extra delay for sockjs in xhr poll mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: users@xxxxxxxxxxxxxxxx
- Subject: apache in proxy mode introduces extra delay for sockjs in xhr poll mode
- From: Stepan Yakovenko <stiv.yakovenko@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 26 May 2017 13:54:11 +0300
- Reply-to: users@xxxxxxxxxxxxxxxx
- Reply-to: Stepan Yakovenko <stiv.yakovenko@xxxxxxx>
I need to handle users disconnecting from my sockjs application running in xhr-polling mode. When I connect to localhost, everything works as expected. When I put apache between nodejs and browser, I get ~20 sec delay between closed browser and disconnect event inside nodejs. My apache proxy config is following:
<Location/>
ProxyPass http://127.0.0.1:8080/
ProxyPassReverse http://127.0.0.1:8080/
</Location>
The rest of the file is default, you can see it here. I tried playing with ttl=2 and timeout=2 options, but either nothing changes, or I get reconnected each 2 seconds without closing browser. How can I reduce additional disconnect timeout, introduced, but apache, somewhere in its defaults?
--
Stepan Yakovenko
[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]