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

HTNet Fix

From: Mikhail Grouchinski <mgrouch@usa.net>
Date: 28 Jan 99 15:45:09 EST
Message-ID: <19990128204509.805.qmail@>
To: www-lib@w3.org
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;

The source in HTNet.c should look like:

    /* Call AFTER filters */
    HTNet_executeAfterAll(request, status);
     
    /* Remove object from the table of Net Objects */                 
remove_net(net);

instead of

    /* Remove object from the table of Net Objects */                     
remove_net(net);

    /* Call AFTER filters */
    HTNet_executeAfterAll(request, status);
     



____________________________________________________________________
Get free e-mail and a permanent address at http://www.netaddress.com/?N=1
Received on Thursday, 28 January 1999 15:45:16 GMT

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