添加了一个选项,以绕过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请求超时。即使我们没有存储在CDN,Python cloudfiles图书馆仍然使CDN请求,因为认证服务返回一个CDN管理URL,其中一些CDN请求超时则返回404。这个补丁是在类似的情况下选择旁路共由use_cdn标志使用CDN请求给用户。当它是关闭的,我们# 039;不去做cdn_connect()要求无论CDN管理URL返回从授权。
下载地址
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论