> Is there any document explains the difference about private and public
> objects in polipo?

A public object sits in the objectHashTable.

A private object is not in the global hash table, so no new references
to it can be created.  Its reference count can only decrease, so it
will eventually be freed.

Let me explain.  There are two kinds of references to an object: hard
references, which come from other data structures (connections,
requests etc.) and are reference-counted, and soft references, which
come from the global hash table and are not reference-counted.

A private object is just one that doesn't have any soft references.
You should not in general call destroyObject, since this could corrupt
Polipo's data structures; instead, call privatizeObject, which will
cause the object to be freed as soon as its reference count drops to 0.

                                        Juliusz

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to