是否可以增加CloudFlare超时? [英] Is it possible to increase CloudFlare time-out?

查看:591
本文介绍了是否可以增加CloudFlare超时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以增加CloudFlare的超时时间?如果是,怎么办?



我的代码需要花一些时间才能执行,而我并没有打算在未来几天内对其进行Ajaxification。



解决方案

不,CloudFlare仅提供这种< a href = https://www.cloudflare.com/enterprise/ rel = noreferrer>根据企业计划进行自定义。




  • 如果CloudFlare在15秒后未能建立HTTP握手,则会超时。

  • 在您看到



    听起来您需要


    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.

    解决方案

    No, CloudFlare only offers that kind of customisation on Enterprise plans.

    • CloudFlare will time out if it fails to establish a HTTP handshake after 15 seconds.
    • CloudFlare will also wait 100 seconds for a HTTP response from your server before you will see a 524 timeout error.
    • Other than this there can be timeouts on your origin web server.

    It sounds like you need Inter-Process Communication. HTTP should not be used a mechanism for performing blocking tasks without sending responses, these kind of activities should instead be abstracted away to a non-HTTP service on the server. By using RabbitMQ (or any other MQ) you can then pass messages from the HTTP element of your server over to the processing service on your webserver.

    这篇关于是否可以增加CloudFlare超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆