添加了一个选项,可以绕过CDN?

暗月博客 2019年11月21日16:07:07评论387 views字数 840阅读2分48秒阅读模式
摘要

添加了一个选项,以绕过CDNWe found that since the beginning of the month, our cloudfiles requests timeout more often than usual. We added some logging and eventually found out that some of our CDN requests are timing out. Even though we have nothing stored on CDN, python-cloudfiles library still makes CDN requests because authentication service returns a CDN management url, and some of these CDN requests timeout while others return 404. This patch is to give users in the similar situation an option to bypass requests to CDN altogether by the use of use_cdn flag. When it is turned off, we're not going to make cdn_connect() request regardless of whether a CDN management url is returned from the authorization.

添加了一个选项,以绕过CDN

We found that since the beginning of the month, our cloudfiles requests timeout more often than usual. We added some logging and eventually found out that some of our CDN requests are timing out. Even though we have nothing stored on CDN, python-cloudfiles library still makes CDN requests because authentication service returns a CDN management url, and some of these CDN requests timeout while others return 404. This patch is to give users in the similar situation an option to bypass requests to CDN altogether by the use of use_cdn flag. When it is turned off, we're not going to make cdn_connect() request regardless of whether a CDN management url is returned from the authorization.

我们发现,自本月初我们cloudfiles请求超时的次数比平常多我们增加了一些记录最后发现我们的一些CDN请求超时即使我们没有存储在CDNPython cloudfiles图书馆仍然使CDN请求,因为认证服务返回一个CDN管理URL其中一些CDN请求超时返回404这个补丁是在类似的情况下选择旁路use_cdn标志使用CDN请求用户当它是关闭的我们# 039不去cdn_connect()要求无论CDN管理URL返回授权

下载地址

python-cloudfiles.zip

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
暗月博客
  • 本文由 发表于 2019年11月21日16:07:07
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   添加了一个选项,可以绕过CDN?https://cn-sec.com/archives/71055.html

发表评论

匿名网友 填写信息