[mod_python] 3.2.8 - Memory leaks with util.FieldStorage

Jim Gallacher jpg at jgassociates.ca
Sat Jun 10 14:29:13 EDT 2006


I've replied to this on the developer's list. I suggest anyone who wants 
to participate in the discussion does so on that list and not here on 
the user's list. Otherwise this thread may get muddled.

Jim

Laurent Blanquet wrote:
> Hello,
> 
> I'm using MOD_APACHE 3.2.8 (from binary dist). with Apache 2.0.55 under Windows XP Pro.
> I encounter memory leaks (~ 16 Ko per request) with a very basic handler like :
> 
> import mod_python
> from mod_python import util
> 
> def handler(req):
>     F=util.FieldStorage( req )   
>     return mod_python.apache.OK
> 
> And sending an HTTP request like : 
> 
> ====  Output from TCPWATCH ====
> POST http://localhost:80/python/Alertes.py HTTP/1.0
> Content-Type: multipart/form-data; boundary=--------061006144341906
> Content-Length: 209
> Proxy-Connection: keep-alive
> Host: www.tx2-localhost
> Accept: text/html, */*
> User-Agent: Mozilla/3.0 (compatible; Indy Library)
> Proxy-Authorization: Basic Og==
> 
> ----------061006144341906
> Content-Disposition: form-data; name="TYPE"
> 
> LAST_ALERTS
> ----------061006144341906
> Content-Disposition: form-data; name="FILEAGE"
> 
> 180
> 
> ----------061006144341906--
> ====
> 
> Has somebody encountered the same problem ?
> Is there a turn-around  or a fix that can be forecasted ?
> 
> Best regards,   Laurent.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python



More information about the Mod_python mailing list