473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Help with ServerXMLHttp: sendTimeouts

I'm trying to find answers to my questions about ServerXMLHttp... We
have the following (simplified) piece of VB6 code on a component,
that is accessed thousands of times per day:

---
On Error Goto Erro

lResolve = 2 * 1000
lConnect = 2 * 1000
lSend = 10 * 1000
lReceive = 6 * 1000

Set objHTTP = New ServerXMLHTTP 'msxml3.dll
objHTTP.setTimeouts lResolve, lConnect, lSend, lReceive

objHTTP.open "GET", strURL, True
lngDiffTempo = GetTickCount()
objHTTP.send

iTimeout = 0
Do While objHTTP.readyState <> 4
objHTTP.waitForResponse 1

iTimeout = iTimeout + 1
If iTimeout > 12 Then Goto Erro
Loop

If objHTTP.Status = 200 Then
lngDiffTempo = GetTickCount() - lngDiffTempo
End If

Exit Function

Erro:
lngDiffTempo = GetTickCount() - lngDiffTempo
---
But even though the sendTimeout is 10 seconds, the waitForResponse
raises a lot of -2147012894 errors in less than 10 sec! We log that
"lngDiffTempo" var, and registered from 2.000 to 9.500 milliseconds
when this error happens. Shouldn't this error happen only when the
total time is more than 10 sec?

And how can we identify the real causes of getting this -2147012894
error so many times? In 800 queries to the destination site, we
logged 150 errors of this type. Somebody here told that this could be
a serialization of the WinHttp component: some requests don't get to
the destination site because WinHttp is not being able to handle so
many requests.
Thanks in advance,
Ytsejammer
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Nov 12 '05 #1
0 2120

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve Troxell | last post by:
I am trying to use ServerXMLHTTP in an ASP page to return a binary file download to the browser. It works just fine with small files ( under 1 MB) but seems to fail with large files (4 MB, 11 MB in...
0
by: Mike D | last post by:
I have been reading these posts and I thought I may be able to use serverXMLhttp for my current problem. My company requires all of their divisions to use the same template for intranet sites. ...
1
by: mohn3310 | last post by:
We're having some problems with foreign characters using ServerXMLHTTP. We have an asp page that calls a function in COM through ServerXMLHTTP. The COM component returns xml data. If that data...
1
by: ehilario | last post by:
Hello everyone, I am trying to access a webservice to post some values via MSXML2.ServerXMLHttp The OS used is win2003 on both machines. When I access the local machine (A) which has the same...
5
by: katrinaVictim | last post by:
Question: I get the eror listed at the bottom of the post. What can I do to make the response of the x1.send a "binary" type? Or, in general, how can I just "make this work"? <%@...
2
by: Maris Janis Vasilevskis | last post by:
Hi, Is it possible to force HttpWebRequest to do exactly (not approximately) the same as MSXML2.ServerXMLHTTP does? More details. I port JScript to JScript.NET I have a server (ASP invoking...
8
by: Dave Brown | last post by:
I am attempting to post to a url (https://FakeURL/logon.asp) using the HttpWebRequest class. The response for a succesful post will contain the html for the logon user's default page. We've...
7
by: Ed McNierney | last post by:
I'm trying to use ServerXMLHTTP on an ASP (not ASP.NET) page to retrieve large binary data from a remote server. When the request is large (more than a few megabytes), the ServerXMLHTTP page jumps...
0
by: rajeshg | last post by:
I have a test to complete the following tasks: Could any body please help me to solve this issue... My question is what r the methods available for MSXML2.ServerXMLHTTP and how to use it retrieve...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.