HTTP状态504 [英] HTTP Status 504

查看:5673
本文介绍了HTTP状态504的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我的win32(c#)应用程序调用Web服务时,我收到以下错误。

I'm getting the following error when my win32 (c#) app is calling web services.

The request failed with HTTP status 504: Gateway timeout server response timeout.

我理解'我认为'这是因为上游请求未及时得到回复时尚。

I understand 'I think' that this is because the upstream request does not get a response in a timely fashion.

但我的问题是这个吗?如何更改win32应用程序中的 app.config 设置,以便有更多时间处理其数据。我假设我要求在我的应用程序设置上进行这些更改,因为web服务和托管ws的IIS设置了更长的时间。

But my question is this? How do I change the app.config settings in my win32 application to allow more time to process its data. I assume I require these changes to be made on my app settings as the webservices and IIS hosting the ws are setup with extended times.

期待回复并谢谢你提前。

Look forward to a response and thank you in advance.

Scott

推荐答案

你不能。问题不是你的应用程序不耐烦和超时;问题是中间代理不耐烦并超时。 服务器在充当网关或代理时,没有收到来自URI指定的上游服务器的及时响应。 ( http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html #sec10.5.5 )它很可能表明原始服务器存在某种问题,因此它没有快速响应转发的请求。

You can't. The problem is not that your app is impatient and timing out; the problem is that an intermediate proxy is impatient and timing out. "The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server specified by the URI." (http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.5) It most likely indicates that the origin server is having some sort of issue, so it's not responding quickly to the forwarded request.

可能解决方案,其中任何一个都不会让你开心:

Possible solutions, none of which are likely to make you happy:


  • 增加代理的超时值(如果它在你的控制之下)

  • 向不同的服务器发出请求(如果有另一台服务器具有相同的数据)

  • 以不同的方式提出您的请求(如果可能),这样您就可以减少请求

  • 一旦服务器没有问题再试一次

  • Increase timeout value of the proxy (if it's under your control)
  • Make your request to a different server (if there's another server with the same data)
  • Make your request differently (if possible) such that you are requesting less data at a time
  • Try again once the server is not having issues

这篇关于HTTP状态504的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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