FW: HTLoadToChunk() will block for a long period

"EricLiu" <[email protected]> Thu, 31 Jul 2008 10:56:25 +0800
Newsgroups gmane.comp.lib.libwww
Message-ID <157CD7C3D7C64E43A0F09E2CF9A345E7@moxericliu>
Hi, folks:

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


Using the above code from the chunk.c exmaple, is it possible to set 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 there a simple function to set a timeout, I can't seem to find one in =
the documentation.



Thanks and Regards
Eric