W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2001

Broken pipe error

From: Niels van Tongeren <niels.van.tongeren@cmg.nl>
Date: Thu, 2 Aug 2001 12:04:22 +0200
Message-ID: <11A760648FE3D211BE5200A0C9F2A1946AD34C@NL-ENS-MAIL01>
To: "'www-lib@w3.org'" <www-lib@w3.org>

I have a problem with libwww when a 'Broken pipe' signal occurs. I have
enabled logging with the function 'settracemessagemask(*)'. Then I see the
following line:
Error....... Add  73	Severity: 1	Parameter: `Broken pipe'

In the program I pass the request to libwww as follows:
	b_status = HTLoadAnchor(pr_anchor, pr_req);
	if (b_status == YES)
		** Go into an event loop.

        		** Try to get the HTTP response.
        		st_status = get_http_response(pr_req, pr_chunk,

The 'HTEventList_loop()'-function returns, and in the
'get_http_response()'-function I check the error-code as follows:

i_errindex = HTError_index(pr_error);

The 'i_errindex'-variable contains the number 73 (see above), where it
contains the number 2 when the request is successful. So I thought that the
request failed, but when I checked the libwww logging again, I saw that the
request was still handled further on in time (likely after having set up a
new connection to the host). But I could not handle this (late) response,
because I already reacted to the error 73 ( and I already got out of the
'HTEventList_loop()'-function).  How can I handle this problem correctly?

Thanks in advance,

Niels van Tongeren
Received on Thursday, 2 August 2001 06:03:42 UTC

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