W3C home > Mailing lists > Public > www-lib@w3.org > October to December 2000

Timeouts

From: Brendan Murphy <bmurphy@iel.ie>
Date: Fri, 10 Nov 2000 09:19:33 -0500 (EST)
To: <www-lib@w3.org>
Message-ID: <CPEGJCOHEHDIMGIPNGCPOEDJCAAA.bmurphy@iel.ie>

    if (url) {
	char * cwd = HTGetCurrentDirectoryURL();
	char * absolute_url = HTParse(url, cwd, PARSE_ALL);
	chunk = HTLoadToChunk(absolute_url, request);
	HT_FREE(absolute_url);
	HT_FREE(cwd);


Using the above code from the chunk.c exmaple, is it possible to se a
timeout
on the request without using an event loop? If the target server is not
responding
then the call HTLoadToChunk() will block for a long period.
Is their a simple function to set a timeout, I can't seem to find one in the
documentation.

Regards,
Brendan...


***************************************************************************
This email and any files transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they 
are addressed. If you have received this email in error please notify 
the system manager (postmaster@iel.ie).

Any opinions expressed within the message are those of the sender, and are
not necessarily reflective of the prevailing company policies.

Copyright in this E-Mail remains with the sender.
***************************************************************************
Received on Friday, 10 November 2000 09:28:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:38 GMT