A
A
Alexander2018-06-05 15:38:42
Apache HTTP Server
Alexander, 2018-06-05 15:38:42

How to configure Apache to work with SSE (server side events)?

Good afternoon
There is a working web application running under Apache in PHP, I decided to add the ability to quickly receive information from the server using SSE technology.
Everything worked well in the sandbox, but when it was transferred to the server, the application page loading time increased from 200 ms to 10 s in 10 minutes and continued to increase, so I had to roll back the update.
In search of a problem, I turned off work with sessions on the SSE server side (session_write_close), closed connections to the database, it did not help.
I suppose that the problem is that too many connections to the server are being established and it does not pull such a volume, in connection with this the question is, is it possible to configure Apache so that it works both for the main application and as the server part of SSE?
If not, how can this be implemented?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question