[mod_python] Differences between mod_python under Windows and Linux?

Graham Dumpleton grahamd at dscpl.com.au
Thu Feb 22 21:11:58 EST 2007


Read:

  http://www.dscpl.com.au/wiki/ModPython/Articles/TheProcessInterpreterModel

The difference which is causing the behaviour you are seeing is that on
non Windows platforms there can be multiple Apache child processes
and these processes don't share data.

Graham

David Kramer wrote ..
> Hi.  New to the list.
> 
> We're porting an old mod_python application from Windows to Red Hat 
> Enterprise Linux 4.  That means Apache 2.0.5, Python 2.3.5, mod_python
> 3.1.3, MySQLdb 1.2.0, and MySQL 4.0.  So far the issues haven't been 
> major, but...
> 
> It appears that under Windows, when we create objects on a page with a
> form, when that page gets called again to handle the submit, that object
> is still there, as if it were running as a persistent web service. 
> Under Linux, this is not happening, and it is as if the page is executed
> anew each invocation (which makes more sense to me).
> 
> I'll admin I inherited this code, so I could be missing something in the
> code, but can someone confirm that there is no difference between how 
> things work on those two platforms?
> 
> Thanks in advance.  If I hear that there is no difference, I may throw
> together a small example program to demonstrate.  Hope that's OK with 
> this list.
> 
> Thanks in advance.
> 
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged material.
> Any review, retransmission, dissemination or other use of, or taking of
> any action in reliance upon this information by persons or entities other
> than the intended recipient is prohibited. If you received this in error,
> please contact the sender and delete the material from any computer.
> 
> _______________________________________________
> 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