Getting lots of 524 errors after adding SSE

After addind SSE a (Server Side Event) process to my app, which is an endpoint only for authenticated users to push notifications, we get loads of 524 errors, despite the fact that the server load is quite low.
The webserver is nginx and I have changed the app’s config from:

        proxy_connect_timeout       60;
        proxy_send_timeout          60;
        proxy_read_timeout          60;
        send_timeout                60;


        proxy_read_timeout 5m;
        proxy_set_header Connection '';
        proxy_http_version 1.1;
        chunked_transfer_encoding off;

In order to let SSE to do it’s job.

I’ve read Community Tip - Fixing Error 524: A timeout occurred but it was not helpful. So I appreciate if there are more tips to deal with this situation?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.