msxml XMLHTTPRequest 和超时

发布于 2024-08-25 04:22:29 字数 169 浏览 1 评论 0原文

什么决定了 XMLHTTPRequest(msxml 版本)发送方法的超时值?我从 MS Sql 服务器调用它,服务器分析器在 30 秒后显示我“已完成”,通过调用存储过程的客户端程序调用它时也会发生同样的情况。我将客户端连接超时设置为 120 秒。所以我认为一定是 msxml 在 30 秒后取消了发送方法。有什么想法吗?

what determins the timeout value for XMLHTTPRequest (msxml version) send method? I'm calling it from MS Sql server and the server profiler shows me 'completed' after 30 seconds, the same happens when calling it through client programm calling stored proc. I set the client connection timeout to 120 sec. So im thinking it must be msxml that cancels send method after 30 secs. Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

看透却不说透 2024-09-01 04:22:29

我很惊讶没有人能/想回答我,但无论如何我想通了。
当 XMLHTTPRequest 进行发布时,默认超时为 30 秒。可以通过设置属性“setTimeouts”来修改它。就我而言,我是在 sql 存储过程中完成的,因此:

EXEC sp_OASetProperty @objectID, 'setTimeouts',resolveTimeout,connectTimeout,sendTimeout,receiveTimeout

EXEC sp_OASetProperty @objectID, 'setTimeouts','120000','120000','120000','120000'

其中 @objectID 是创建 MSXML2.ServerXMLHTTP 对象的 id。

Im suprised noone could/wanted to answer me but anyway i figured it out.
When XMLHTTPRequest makes post the default timeout is 30 seconds. It can be modified setting the property 'setTimeouts'. In my case i did it in sql stored proc so:

EXEC sp_OASetProperty @objectID, 'setTimeouts',resolveTimeout,connectTimeout,sendTimeout,receiveTimeout

EXEC sp_OASetProperty @objectID, 'setTimeouts','120000','120000','120000','120000'

where @objectID is id from creating the MSXML2.ServerXMLHTTP object.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文