apache in proxy mode introduces extra delay for sockjs in xhr poll mode

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

apache in proxy mode introduces extra delay for sockjs in xhr poll mode

Stepan Yakovenko-2

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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: apache in proxy mode introduces extra delay for sockjs in xhr poll mode

Daniel
Have you tried with disabling reuse to see if the problem persists?

2017-05-26 12:54 GMT+02:00 Stepan Yakovenko <[hidden email]>:

> 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



--
Daniel Ferradal
IT Specialist

email         dferradal at gmail.com
linkedin     es.linkedin.com/in/danielferradal

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re[2]: [users@httpd] apache in proxy mode introduces extra delay for sockjs in xhr poll mode

Stepan Yakovenko-2
How can i disable reuse?


Пятница, 26 мая 2017, 14:12 +03:00 от Daniel <[hidden email]>:

Have you tried with disabling reuse to see if the problem persists?

2017-05-26 12:54 GMT+02:00 Stepan Yakovenko <[hidden email]>:
> 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



--
Daniel Ferradal
IT Specialist

email dferradal at gmail.com
linkedin es.linkedin.com/in/danielferradal

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



--
Stepan Yakovenko
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re[2]: [users@httpd] apache in proxy mode introduces extra delay for sockjs in xhr poll mode

Stepan Yakovenko-2
In reply to this post by Daniel
Tried disablereuse=On, nothing changes.


Пятница, 26 мая 2017, 14:12 +03:00 от Daniel <[hidden email]>:

Have you tried with disabling reuse to see if the problem persists?

2017-05-26 12:54 GMT+02:00 Stepan Yakovenko <[hidden email]>:
> 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



--
Daniel Ferradal
IT Specialist

email dferradal at gmail.com
linkedin es.linkedin.com/in/danielferradal

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



--
Stepan Yakovenko
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Re[2]: [users@httpd] apache in proxy mode introduces extra delay for sockjs in xhr poll mode

Luca Toscano
Hi Stepan,

Have you tried to explicitly set ProxyTimeout? If your environment is a testing one, would it be possible for you to raise the LogLevel to trace8 and send us the logs (https://httpd.apache.org/docs/2.4/mod/core.html#loglevel) ? I am assuming that you have httpd 2.4, but which version? Have you tried the same with the most recent release?

Thanks!

Luca 

2017-05-29 13:49 GMT+02:00 Stepan Yakovenko <[hidden email]>:
Tried disablereuse=On, nothing changes.


Пятница, 26 мая 2017, 14:12 +03:00 от Daniel <[hidden email]>:

Have you tried with disabling reuse to see if the problem persists?

2017-05-26 12:54 GMT+02:00 Stepan Yakovenko <[hidden email]>:
> 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



--
Daniel Ferradal
IT Specialist

email dferradal at gmail.com
linkedin es.linkedin.com/in/danielferradal

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



--
Stepan Yakovenko

Loading...