问题描述
嗨!
自从迁移到Azure以来,我们经常遇到一个问题,即有时调用会因socketexception超时而超时:
Since moving to Azure we have a recurrent problem where occasionally the calls will timeout with socketexception:
" 连接尝试失败,因为一段时间后被连接方未正确响应,或者连接建立失败,因为连接的主机无法执行响应"
"A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond"
我们知道接收服务已启动并正在运行,所以这不是问题.
We know the receiving service is up and running so that't not the problem.
任何帮助将不胜感激!
/BR安德斯
Vinblad
推荐答案
这可能是您遇到问题的原因.如果没有,您可以参考以下文档:https://blogs.msdn.microsoft.com/benjaminperkins/2016/11/02/port-limit-for-an-azure-app-service/,其中描述了类似的错误并查看它是否有帮助
This could be the reason of your issue. If not, you may refer this document:https://blogs.msdn.microsoft.com/benjaminperkins/2016/11/02/port-limit-for-an-azure-app-service/, which describes regarding the similar error and see if it helps.
-------------------------------------------------- -------------------------------------------------- -
这篇关于从我们的Azure应用服务调用外部API/Web服务时偶尔出现SocketException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!