Re: How to set Timeout with URL Moniker?

From: ama (a.m.a_at_videotron.ca)
Date: 09/19/04


Date: Sun, 19 Sep 2004 13:38:29 -0400


"Brian Birtle" <brian_birtle@hotmail.com> wrote in message
news:b5e821b2.0409190455.5639711@posting.google.com...
> We use a URL Moniker to make an HTTP/S request to a script which can
> take sometimes several minutes to execute. It seems like what happens
> is Internet Explorer gives up waiting at some point and terminates the
> request.
>
> It's a silly stupid question, but how can I set the timeout to
> unlimited to avoid this problem? I've been combing the docs and can
> figure out no way to do it. (get pointers to IWinINet, IBindInfo,
> IBindStatusCallback, etc... nope)
>
> Or does someone have another idea about why the problem could be
> occuring? I've tested and our script executes successfully and returns
> a simple "ok" as the HTTP response. The ActiveX control *should* get
> this, but never does. IIS logs indicate success, application state is
> correct, etc... the client just never receives the completion
> notification.
>
> It's an ActiveX control hosted in Internet Explorer and written using
> VC++.NET 2003, ATL COM (no .NET use) However I think the priciple is
> the same if using VB6.
>
> Thanks much,
> - Brian

So if im getting this right, the problem has nothing to do with the
execution of the script
but rather with the http request ? If that's the case then forget about the
script for now and
I suggest 2 test cases:
First, clear the cached files, Wininet uses internet explorer 's cache
system at some level
and since you are trying to test response time, you dont need the cache
settings to interfere.
Then make a request for a new file , of diffrent type like a GIF. This will
test the Moniker.
IF this test results in similar problems, then store another file (any file)
on a new Server,
this time not the IIS, but rather a remote server and try again. Obviously
at this point if you get
again a similar behavior, then we both know the problem is with the
implementation of your
Moniker and not the WinInet APIs themselves. It may be certain FLAGS you
used wrong etc..

cya



Relevant Pages

  • Re: [PHP] Send process to background
    ... There is a script that is called through a web request. ... to execute. ... the request telling the user that the backup is being made. ...
    (php.general)
  • Re: un php script and excpect an answer
    ... you should create the smallest possible script that reproduces ... before when I execute it in my browser it runs with no problem and has ... sends the request and ends and will not continue but it ends with no ... // invoice status of the client but for the first execution there is ...
    (comp.lang.php)
  • Re: notice and warning
    ... You expect some piece of data from a post in your script, ... So you use $_REQUEST["userid"] which works perfectly fine as long as you get the userid in via POST. ... Now you find yourself in the situation that when you call this script for any reason without the POST info, you will delete yourself if you prefer $_REQUEST over $_POST. ... Saying that using $_REQUEST 'scales better' is utter nonsense. ...
    (comp.lang.php)
  • Re: notice and warning
    ... You expect some piece of data from a post in your script, ... prefer $_REQUEST over $_POST. ... the different meanings the input should have based on how it arrives. ... that's bad design. ...
    (comp.lang.php)
  • Re: Will Linux become as vulnerable as MS ??
    ... > beeing vulnerable to viruses. ... > that they know are executable, and execute intentionally. ... >> Linux, each distro is a little different, and even within the distro, ... > Since clicking on a script is easier than typing it's name, ...
    (comp.os.linux.security)