msxml XMLHTTPRequest 和超时
什么决定了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我很惊讶没有人能/想回答我,但无论如何我想通了。
当 XMLHTTPRequest 进行发布时,默认超时为 30 秒。可以通过设置属性“setTimeouts”来修改它。就我而言,我是在 sql 存储过程中完成的,因此:
其中 @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:
where @objectID is id from creating the MSXML2.ServerXMLHTTP object.