W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1999

Re: [Re: HTNet Fix]

From: Mikhail Grouchinski <mgrouch@usa.net>
Date: 9 Feb 99 17:06:58 EST
Message-ID: <19990209220705.25985.qmail@www08.netaddress.usa.net>
To: www-lib@w3.org
I changed the latest (probably) HTNet.c as you advise.
I added the function free_net() and removed freeing of HTNet object
from delete_object and (as the result) from remove_net.
In HTNet_delete I put the call of free_net() after calling After filters.
free_net was also added everywhere we call remove_net or delete_object. 

I attach the source.
Thank you

At 15:45 1/28/99 EST, Mikhail Grouchinski wrote:
>Why not to move the call of after filters before calling destructor of
>Net object. Otherwise statistics collected by HTNet object
>will be not available within request After filter.
>The functions HTRequest_bytesRead HTRequest_bytesWritten will
>always return -1;

frystyk@w3.org wrote:
Yes, I was looking at this the other day and found the following problem:
remove_net() really does two things - it unregisters the Net object, checks
to see if new requests are to be started and then deletes the object.

I think we would want the first two things to happen before we call the
after filters and only the deletion of the Net object to happen afterwards.
That is, remove_net should be split into two.

Do you agree?

Henrik Frystyk Nielsen,
World Wide Web Consortium

Get free e-mail and a permanent address at http://www.netaddress.com/?N=1

Received on Tuesday, 9 February 1999 17:13:31 UTC

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