[Pymilter] no memory release when assigning chunks to self.fp in milter-template.py
Stuart D. Gathman
stuart at gathman.org
Tue Feb 4 13:58:23 EST 2020
On Tue, 4 Feb 2020, joao reis wrote:
> How could I explicitly test item 3? Could you give me an example, please?
>> You can investigate whether 3 is happening by logging the result
>> of Milter.getdiag() periodically. This returns a count of milter_Context
>> NEW and milter_context DEL.
> Any ideias to advance?
In your close method, try deleting self.fp. (del self.fp)
If that doesn't "solve" your problem (it ought to happen automatically),
then you are keeping a reference to self.fp around somewhere.
--
Stuart D. Gathman <stuart at gathman.org>
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
More information about the Pymilter
mailing list