W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2001

AW: Attaching a timer to asynchronous requests

From: Markus Bäurle <m.baeurle@caa.de>
Date: Fri, 26 Jan 2001 11:25:19 +0100
Message-ID: <F14093B1E268D211B4B800105A40E72B7F24CD@CAA-SERVER1>
To: "'www-lib@w3.org'" <www-lib@w3.org>
Hello Nick,

maybe you should have a look at the "showxml" example.
It contains the following line, have you tried this yet?

    /* Setup a timeout on the request for 15 secs */

It uses a HTMLNoCacheClient, too, so this should be applicable to your code
as well.
Haven't tried it though, it's just a guess.

Hope this helps,


-----Ursprüngliche Nachricht-----
Von: Nick Riebeek [mailto:nriebeek@powersurfr.com]
Gesendet: Freitag, 26. Januar 2001 04:25
An: www-lib@w3.org
Betreff: Attaching a timer to asynchronous requests

Hi there, I am trying to write a variation of the non-blocking mget sample
program which will take in as input a file of urls and thendump these to
stdout.  My problem is that when an url is busy or for whatever reason very
slow to respaond, the whole program hands and can be exited only by manually
killing it.  What I want is for a request to be cancelled after a certain
timeout.  Any idea how this can be done?  I have looked at the HTTimer class
but haven't had much luck with it.  Thanks for any help.  I have included
the code below.

[Code deleted]
Received on Friday, 26 January 2001 05:25:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:53 UTC