gpt4 book ai didi

c# - 客户端在超时异常时超过了 sendTimeout

转载 作者:太空宇宙 更新时间:2023-11-03 16:27:19 25 4
gpt4 key购买 nike

我正在尝试将超时/EndPointNotFound 异常时间减少到 10 秒。异常日志表明调用在 10 秒内超时,但如果我使用 StopWatch 添加代码,则大约需要 21 - 22 秒。

我在 this 上也读过同样的内容链接。

这真的是一个错误吗?有什么解决方法吗?

最佳答案

1 SendTimeout 用于初始化 OperationTimeout,它管理发送消息的整个交互

http://msdn.microsoft.com/fr-fr/librarysystem.servicemodel.configuration.standardbindingelement.sendtimeout.aspx

http://msdn.microsoft.com/fr-fr/library/ms731343.aspx

It's not a bug

2 您可以在绑定(bind)部分调整属性 sendTimeout=""

关于c# - 客户端在超时异常时超过了 sendTimeout,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12164633/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com