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

AW: HT_WOULD_BLOCK

From: Oliver Steinau <Oliver.Steinau@STencode.de>
Date: Fri, 17 Aug 2001 12:27:22 +0200
Message-ID: <2B88AE35C609DF4F852D31FFA6FD5EE601A639@CAESAR.STencode.de>
To: "Oliver Steinau" <Oliver.Steinau@STencode.de>, <www-lib@w3.org>
Sorry, I found the problem... I forgot to call HTEventList_loop()... :-(

/oliver


-----Ursprüngliche Nachricht-----
Von: Oliver Steinau 
Gesendet: Freitag, 17. August 2001 12:09
An: www-lib@w3.org
Betreff: Q: HT_WOULD_BLOCK


(using v. 5.3.2):
I use a HTProfile_newNoCacheClient(), and issue a GET request, with no
proxy set, thru HTLoadAbsolute (w/ output format set to WWW_SOURCE).
When I step through the code, there's a line in HTTP.c (line 1107) that
reads "else if (status == HT_WOULD_BLOCK || status == HT_PENDING) return
HT_OK;

The effect is that status is indeed HT_WOULD_BLOCK, the issued request
returns with a YES, but with no response set, and nothing ever happened
(btw, I don't understand why it's HT_WOULD_BLOCK; I presume that I need
to set a proxy, but that shouldn't result in a EWOULDBLOCK return from
select...)

Q: What am I supposed to do in this case? How do I know that I got a
EWOULDBLOCK condition? I get a YES, and the request doesn't have a
response object ....

confused...

/oliver
Received on Friday, 17 August 2001 06:27:53 GMT

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