Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wpf WCF中httpbinding中超时属性的最大值是多少_Wpf_Wcf - Fatal编程技术网

Wpf WCF中httpbinding中超时属性的最大值是多少

Wpf WCF中httpbinding中超时属性的最大值是多少,wpf,wcf,Wpf,Wcf,我的配置设置如下 <bindings> <basicHttpBinding> <!-- This binding is used when connecting to services secured using SSL (e.g. when accessible over internet/WAN) --> <binding name="SecuredBasicHttpBinding" closeTimeou

我的配置设置如下

<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等设置最大值。。 我从下面的url获得了这个值10675199.02:48:05.4775807。但它不起作用

可以为超时设置的最大值是多少?

指出最大超时几乎是25天。祝你好运p


如前所述,考虑将其设置为一个实际的时间段,并在响应超时时采取适当的动作。

< P>最大超时值是一个带符号的32位整数的最大值:2147483647

,我不直接知道答案,但我建议您对此做三思。目的何在?想要无限期地等待一个“答案”。实际上什么不起作用?编译时错误?运行时错误?事实上,我的一些服务返回超时预期值,所以我想设置maxvalue of timeout,但我不想将其设置为最大值。多长时间?你要等待一个最大值吗?考虑将其设置为一个实际的值,这取决于操作的长度。也许1到5分钟已经是很多了。