- From: olga <olga@goliath.eai.com>
- Date: Tue, 19 Jan 1999 15:04:16 -0600 (CST)
- To: www-lib@w3.org
Hi,
I have tried the changes. I do not have 902 any more. That is great!
Thanks!
There is a performance problem though. select hangs for a long time (up to 2
minutes!) after the host closes connection of after request was
cancelled and AfterFilterEvent was registered. Can the timeouts be made shorter?
Also when timeout is 0 sometimes select hangs indefinitely. I have added a
code that in case when timout is 0 uses pointer to the empty time structure for
the select (instead of NULL). For me that cured the hanging in select with 0
timeout.
That is what I added to HTEvtLst.c in HTEventList_loop:
wt = NULL;
if ((status = HTTimer_next(&timeout)))
return status;
if (timeout != 0) {
waittime.tv_sec = timeout / MILLI_PER_SECOND;
waittime.tv_usec = (timeout % MILLI_PER_SECOND) *
(1000000 / MILLI_PER_SECOND);
wt = &waittime;
}
///////////////////////////// here is my addition:
else {
if (THD_TRACE) HTTrace("Event Loop.. timestruct is NULL\n");
waittime.tv_sec = 0;
waittime.tv_usec = 0;
wt = &waittime;
}
Thanks,
Olga Antropova.
On 19-Jan-99 Henrik Frystyk Nielsen wrote:
>
>
> olga wrote:
>
>> After fix in HTChannl.c (cleaning the desctiptors set) I still see the same
>> behavior: When some host closes connection - next select returns error.
>
> I found two problems that I think cause this:
>
> 1) there is what I think is an OS bug in some select - when calling
> select on a half open socket, select can return -1 even though it
> shouldn't. I have now added a check for this situation but will have to
> check some TCP gurus to be sure.
>
> 2) there was a bug in who could lock the host object - this should now
> be fixed.
>
> As a result, I don't see the 902 problem anymore.
>
> I have committed this to CVS - please try it out.
>
> Henrik
----------------------------------
E-Mail: olga <olga@eai.com>
Date: 19-Jan-99
Time: 14:49:46
This message was sent by XFMail
----------------------------------
Received on Tuesday, 19 January 1999 16:00:33 UTC