首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >约30秒后,“远程主机已强制关闭现有连接”

约30秒后,“远程主机已强制关闭现有连接”
EN

Stack Overflow用户
提问于 2017-01-24 12:49:17
回答 1查看 526关注 0票数 0

我在IIS7上托管了WCF服务,它已经开始“强制关闭连接”。

例如:当请求被发送时,应用程序开始处理它,同时连接关闭,并出现以下异常

An error occurred while receiving the HTTP response to https://############/#########.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.

Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.

An existing connection was forcibly closed by the remote host

终结点正在使用SSL (TLS1.0)。

如果请求持续时间少于30秒,则会适当地检索响应,但如果请求持续时间超过30秒,则连接将被强制关闭(请求将继续在端点上执行并完成,但永远不会检索到响应)。

EN

回答 1

Stack Overflow用户

发布于 2017-01-24 13:03:18

您需要配置maxReceivedMessageSize和,并根据您的要求将其设置为您希望support.And receiveTimeout的最大字节数。示例:

代码语言:javascript
运行
AI代码解释
复制
         <binding name="Your Binding Name" receiveTimeout="00:01:00" maxReceivedMessageSize="" />
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/41828652

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档