Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First poll connection is cancelled after exactly 3 seconds #230

Open
vitobotta opened this issue Jun 18, 2020 · 2 comments
Open

First poll connection is cancelled after exactly 3 seconds #230

vitobotta opened this issue Jun 18, 2020 · 2 comments

Comments

@vitobotta
Copy link

Hi! MessageBus is mostly working for me, but for some reason the very first POST request after loading the page, is cancelled after exactly 3 seconds. Then it connects successfully but after a while, so some messages are lost.

Is this because of proxy buffering or Cloudflare? I have a particular setup in Kubernetes: my container includes Nginx in front of the Rails app (in order to use Redis for full page caching), and this Nginx is configured to disable proxy buffering as explained in the README. However, the Nginx ingress controller that accepts requests from the outside of the cluster and forwards them to the containers, is not yet configured that way. There is an annotation for the ingress that I can use to disable proxy buffering there as well, but I have yet to find out how I can have it applied to the /message-bus path only and not for every path. So I was wondering, how important is disabling proxy buffering? What can this cause if enabled?

Also, on top of all of this there is also Cloudflare... can it cause problems? Is it possible to use MessageBus with Cloudflare?

Thanks a lot in advance!

@SamSaffron
Copy link
Member

Sounds like a lot of moving pieces, I would recommend removing proxies from the equation first to see if they are the culprit.

Maybe access the site from a direct IP address with a hosts record locally and see if the issue resolves?

@vitobotta
Copy link
Author

Hi @SamSaffron

I found out that to disable proxy buffering on the Nginx ingress controller I would have to create a separate ingress resource for MessageBus, which is not a big deal. So the two Nginx instances would be covered but there is still Cloudflare - which I want to keep for security.

I will try with the hosts trick that you suggested. I should have thought about that. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants