Re: Updated: (MODPYTHON-77) The multiple interpreter concept
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Re: Updated: (MODPYTHON-77) The multiple interpreter concept




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Updated: (MODPYTHON-77) The multiple interpreter concept  
Jim Gallacher


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-07-05 01:47 AM

Graham Dumpleton (JIRA) wrote:
>      [ http://issues.apache.org/jira/brows...HON-77?page=all ]
>
> Graham Dumpleton updated MODPYTHON-77:
> --------------------------------------
>
>     Attachment: grahamd_20051105.tar.gz
>
> Here is my first go at an alternate patch for this problem. Patch was made
 against SVN head, believed to be 3.2.4b.
>
> All the change in effect does is save the first interpreter as main_interpreter, b
ut most importantly it does this in Apache child process and not in the parent proce
ss before the fork occurs as was the case before. This avoids problems on Mac OS X w
her
e Apache would crash on "restart" and on Linux where Apache would crash after the request ha
d been handled.
>
> Note that this change doesn't use any of the PEP GIL specific calls nor does it do
 anything specific to make anything work on Python 2.3.5. Except for moving one thre
ad state swap call from the parent process context to the child process context, all
 th
read management code is the same.
>
> The changes work fine on:
>
>   Mac OS X (10.3.9) / Apache 2.0.51 (worker) / Python 2.3 (Apple OS Instal
led)
>   Linux Fedora Code 2 / Apache 2.0.55 (prefork) / Python 2.3.5
>
> Test example was gilstate.tar.gz attached to MODPYTHON-77.
>
> Also passed on mod_python/test suite on Mac OS X. There were failures of test suit
e on Linux, but those failures occurred before patches were applied as well.

Failures? What failures?

Jim






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:03 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register