Doubled HTTP requests

Well, can nginx double my request internally when it forwards it to the upstream server? (but then why doesn’t it double it when I turn off Cloudflare proxy?)
I get it that now with Ezoic, the whole thing is even more messed up, but when I used only Cloudflare, jenkins was already behaving strange.

I believe this was the thread I was referring to

aaa, ok, so I should find something in the server log!
I would be so happy if it was only Ezoic. But it happened to me well before Ezoic, just nobody answered when I asked and it wasn’t important enough, so I could just manually cancel my duplicate build in jenkins’s queue.

That certainly is an option too. I am afraid you can only debug this by trial and error if you do not have a concrete idea where the issue is.

I am not ruling out that Cloudflare could be involved here, however I’d tend to believe the probability of Cloudflare being the reason is relatively small :slight_smile: Cloudflare’s approach to proxying is relatively simple, whatever it gets it forwards as-is. Only workers could influence that but these you dont seem to have.

yes :pensive::pensive: although none of the components should be duplicating requests and the only culprit I could find is this keep-alive option breaking… it will be the time of my life debugging this, as I have no idea yet how to debug any of nginx and cloudflare. I was far too happy so far to fix my bugs in my code. XD

As far as I see, others on the internet with the same issue with cloudflare rather end up implementing a unique ids system on all the requests which is not a path I’d like to take.

I am afraid at this point we have exhausted the forum here a bit.

For starters, I’d really check the connection IDs assigned by Cloudflare. You should get one on your client end and that should match somehow what ends up on your server. Depending on how many requests and different IDs you get then on your server, you can proceed in your debugging or even contact Cloudflare’s support for further clarification.

Also check if it might have anything to do with HTTP to HTTPS redirects or similar. When Cloudflare performs such redirects it typically does not forward the original request, however maybe one of your other proxies does so. Just speculation of course :slight_smile:

I get it, sorry Sandro, it is the usual - hard to pinpoint what could be the culprit, thanks for giving me your time though. :heart::pray:

Now, my server log shows that a shadow request comes a 30s later to the same url, with “Mediapartners-Google X-Middleton/1” user-agent header. So my server stuff may be AdX or Ezoic. I’ll look up that Jenkins stuff separately. (I don’t run ads on that XD)

That does point to Ezoic once more, another thread I - vaguely :smile: - remember Fake Google Bot - #16 by katarzynastarzewska

1 Like

Yes, thanks :nerd_face: also Jenkins now seems to launch the build twice even with cloudflare switched to no proxying mode XD

You are an unsung hero here, Sandro!

This topic was automatically closed after 14 days. New replies are no longer allowed.