Re: [Re: HTNet Fix]

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
--
Henrik Frystyk Nielsen,
World Wide Web Consortium
http://www.w3.org/People/Frystyk


____________________________________________________________________
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