Azure网站不断抛出错误“尝试以受其访问权限禁止的方式访问套接字". [英] Azure website keeps throwing the error "An attempt was made to access a socket in a way forbidden by its access permissions"

查看:84
本文介绍了Azure网站不断抛出错误“尝试以受其访问权限禁止的方式访问套接字".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个按照专用Azure计划作为Web应用程序运行的网站.它连接到Redis,SQL Azure和MongoDB后端.该网站已经运行了好几个星期,然后没有任何新代码,现在我开始收到许多套接字异常,如下所示.

I have a website running as a web app on a dedicated Azure plan. It connects to a Redis, SQL Azure and a MongoDB backend. The website has been running fine for weeks now and then without any new code I am now getting lots of socket exceptions starting like the one below.

尝试以其访问权限禁止的方式访问套接字.

An attempt was made to access a socket in a way forbidden by its access permissions.

网站在连接到Redis,SQL Azure和MongoDB时间歇性地出现错误,这没有任何意义.我更改了网站的定价层,将网站从一台虚拟机迁移到幕后的另一台虚拟机,错误消失了几天,然后又返回了.

The website intermittently gets the error when connecting to Redis, SQL Azure and MongoDB which makes no sense. I changed the Pricing Tier for the site which would move the website from one VM to another behind the scenes and the errors went away for a couple days and have returned again.

我刚才将站点从S3更改为S2(使其更小),它们已经消失了,但我不知道待了多久.我该如何解决? Azure是否限制网站的套接字数量?在Azure的网站上是否有某些设置可能会导致这种情况?

I just now changed the site from an S3 to an S2 (making it smaller) and they have gone away but I don't know for how long. How do I fix this? Does Azure limit the number of sockets for a site? Is there some setting on a site in Azure that could cause this?

推荐答案

实际上,它确实限制了套接字的数量.据我所知,官方没有在任何地方对此进行记录.不过,我确实在此发布了博客文章: http://www.freekpaans.nl/2015/08/starving-outgoing-connections-on-windows-azure-web-sites/

Indeed, it does limit the amount of sockets. As far as I know, this isn't documented anywhere official. I do, however, have a blog post on this here: http://www.freekpaans.nl/2015/08/starving-outgoing-connections-on-windows-azure-web-sites/

这篇关于Azure网站不断抛出错误“尝试以受其访问权限禁止的方式访问套接字".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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