Is it possible to increase CloudFlare time-out?

后端 未结 3 1467
眼角桃花
眼角桃花 2021-02-01 16:02

Is it possible to increase CloudFlare\'s time-out? If yes, how?

My code takes a while to execute and I wasn\'t planning on Ajaxifying it the coming days.

3条回答
  •  南笙
    南笙 (楼主)
    2021-02-01 16:43

    I was in communication with Cloudflare about the same issue, and also with the technical support of RabbitMQ.

    RabbitMQ suggested using Web Stomp which relies on Web Sockets. However Cloudflare suggested...

    Websockets would create a persistent connection through Cloudflare and there's no timeout as such, but the best way of resolving this would be just to process the request in the background and respond asynchronously, and serve a 'Loading...' page or similar, rather than having the user to wait for 100 seconds. That would also give a better user experience to the user as well

    UPDATE:

    For completeness, I will also record here that I also asked CloudFlare about running the report via a subdomain and "grey-clouding" it and they replied as follows:

    I will suggest to verify on why it takes more than 100 seconds for the reports. Disabling Cloudflare on the sub-domain, allow attackers to know about your origin IP and attackers will be attacking directly bypassing Cloudflare.

    FURTHER UPDATE

    I finally solved this problem by running the report using a thread and using AJAX to "poll" whether the report had been created. See Bypassing CloudFlare's time-out of 100 seconds

提交回复
热议问题