我的配置设置如下。
<bindings>
<basicHttpBinding>
<!-- This binding is used when connecting to services secured using SSL (e.g. when accessible over internet/WAN) -->
<binding name="SecuredBasicHttpBinding" closeTimeout="10675199.02:48:05.4775807"
openTimeout="10675199.02:48:05.4775807" receiveTimeout="10675199.02:48:05.4775807" sendTimeout="10675199.02:48:05.4775807"
maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
<readerQuotas maxStringContentLength="16384" />
<security mode="Transport">
<transport clientCredentialType="Basic" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
我想设置closetimeout,opentimeout..etc的最大值.. 我从url下面得到了这个值10675199.02:48:05.4775807但它没有用。
How can I set the receiveTimeout and sendTimeout to infinity with this WCF contact?
可以为超时设置的最大值是什么?
答案 0 :(得分:0)
This post表示最长超时几乎是25天。祝你好运! :P
正如我之前提到的,考虑将其设置为实际的时间跨度,并在响应超时时采取适当的措施。
答案 1 :(得分:0)
最大超时值是带符号的32位整数的最大值:2147483647