rlm_python

Arran Cudbard-Bell a.cudbardb at freeradius.org
Sat Apr 9 22:59:35 CEST 2016


> On 9 Apr 2016, at 10:09, Michael Ströder <michael at stroeder.com> wrote:
> 
> Arran Cudbard-Bell wrote:
>> 
>>> On 6 Apr 2016, at 11:30, Alan DeKok <aland at deployingradius.com> wrote:
>>> 
>>> On Apr 6, 2016, at 10:57 AM, Phil Mayers <p.mayers at imperial.ac.uk> wrote:
>>>> C extension modules which are using the "simplified" GIL API will deadlock if accessed in anything other than the first interpreter, IIRC.
>>> 
>>> Then we document it.  And anyone who doesn't read the documentation gets what they deserve
>> 
>> mod_python includes an option to use the first interpreter context, so that's probably a knob we should add too.
> 
> Hmm, I vaguely remember that using mod_python is highly deprecated since many
> years. So I'm not sure whether you view it as a good coding example.
> 
>> Python embedding really sucks.
> 
> Maybe it's better to not embed any script language interpreter at all and rather
> encourage people to implement decent external demons listening on a Unix domain
> socket where FreeRADIUS sends the requests to.

For Python, yes. I'm surprised there's not a python-on-a-stick project already.

For other languages (like Lua), you can run multiple instances of the interpreter and manage your own shared storage if the instances need to communicate (which they usually don't).

-Arran

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 872 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20160409/907a3a46/attachment.sig>


More information about the Freeradius-Users mailing list