[Pymilter] no memory release when assigning chunks to self.fp in milter-template.py

joao reis joao at 7lan.net
Tue Feb 4 15:10:12 EST 2020


Maybe the postfix implementation? I'm getting this from the 
Milter.getdiag():

DIAGNOSTICO:(3401,3388)
DIAGNOSTICO:(3403,3388)
DIAGNOSTICO:(3403, 3388)

Any workaround?

On 2/4/20 3:58 PM, Stuart D. Gathman wrote:
> 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.
>


More information about the Pymilter mailing list