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

Re: libwww Ver 4.0C - When to Remove HTRequest Object?

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Fri, 02 Feb 1996 12:19:10 -0500
Message-Id: <9602021719.AA13965@www20>
To: Vu Nguyen <vu@isdnsys.com>
Cc: "'www-lib@w3.org'" <www-lib@w3.org>
Vu Nguyen writes:
> When can I remove the HTRequest object which is created by =
> HTRequest_dupInternal()?

Modules in the Library can in some situations create extra request objects that the rest of the Library or the application does not know about. For example, one way of using the POSTWeb mechanism is to pass one request object to the Library and then let the Library take care of the rest. Then the Request  manager will create extra request objects and make sure that they are removed again.

However, in this situation, you are in a part of the library where "normal" apps do not come as you are in the HTTP server protocol module. In this case you are responsible for getting rid of the extra request object.

Normally, it is for the application to get rid of requst objects. The rule is that the application can discard a request object as soon as the request has terminated and the last request terminater handler (which is registered by the app) has been called.


-- 

Henrik Frystyk Nielsen, <frystyk@w3.org>
World-Wide Web Consortium, MIT/LCS NE43-356
545 Technology Square, Cambridge MA 02139, USA
Received on Friday, 2 February 1996 12:19:24 GMT

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