Search the web
Sign In
New User? Sign Up
pocketsoap
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Setting HTTP Timeout on Windows   Message List  
Reply | Forward Message #1331 of 5327 |
Simon (or other gurus),

I'm having trouble overriding the default HTTP timeout of 15
seconds. I'm on Windows XP using PocketSOAP 1.4 Beta with
JavaScript.

Here's how I'm trying to set the timeout:

var httpSoap
= WScript.CreateObject("pocketSOAP.HTTPTransport.2");

// ### This doesn't have any effect!?!
httpSoap.Timeout = 60000; // Give it a minute

httpSoap.SOAPACTION = soapAction;

// message setup omitted ...

// Send the SOAP message, parse the response
httpSoap.Send(destURL, message.Serialize());
message.Parse(httpSoap);

I get a "Timeout waiting for response" error after 15 seconds.

Since Timeout's been working for quite a while on Windows (glad to
see its recent support on PocketPC as well), this must be some
mistake on my part. Any suggestions would be much appreciated.

Thanks,

Jim Stearns





Wed Oct 23, 2002 11:28 pm

Jim_Stearns
Offline Offline
Send Email Send Email

Forward
Message #1331 of 5327 |
Expand Messages Author Sort by Date

Simon (or other gurus), I'm having trouble overriding the default HTTP timeout of 15 seconds. I'm on Windows XP using PocketSOAP 1.4 Beta with JavaScript. ...
Jim_Stearns
Offline Send Email
Oct 24, 2002
5:44 am

Hi Simon, I have the same problem on Windows XP with C++. Is it right to setup timeout as, hr = m_cpHttpTrans.CoCreateInstance(__uuidof(HTTPTransport)) ; ...
xiaohuliu
Offline Send Email
Oct 25, 2002
5:09 pm

OK, I have a workaround, and a theory on the cause of my problem. I left out some important detail. I was creating two instances of HTTPTransport, one for two...
Jim_Stearns
Offline Send Email
Oct 26, 2002
5:39 am

... nope, HTTPTransport is not a singleton. ... Yes, HTTPTransport is now HTTP 1.1, and does keep-alives, the underlying connection objects are pooled are...
Simon Fell
simonfell99
Online Now Send Email
Oct 27, 2002
5:56 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help