<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Alan DeKok wrote:
<blockquote cite="mid:4AAA1840.7020601@deployingradius.com" type="cite">
  <pre wrap=""><a class="moz-txt-link-abbreviated" href="mailto:mathieu@trustive.com">mathieu@trustive.com</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">@john dennis: it's not the bug we're hitting, as the issue is visible when
launching a "shell command" (via exec program wait)
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  That's rather astonishing.
  </pre>
</blockquote>
It is indeed what we've experienced with our tests: a simple "echo
'Auth-Type := Accept'" would take up to 100ms (more) than a "return 3"
in perl or in python.
<blockquote cite="mid:4AAA1840.7020601@deployingradius.com" type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">What about rlm_python? would you recommend using it, or will it be as
"slow" as the exec program wait in threaded mode?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  It will *not* fork a process, so it will be very fast.
  </pre>
</blockquote>
that does indeed confirm the tests i've been doing this morning. It
does look like the rlm_python roughly as fast as rlm_perl (takes less
than a ms to answer, while the rlm_exec could take up to 100ms).<br>
I'm wondering how the "not threaded" nature of cpython will behave with
freeradius being threaded though, any clues on that?<br>
<blockquote cite="mid:4AAA1840.7020601@deployingradius.com" type="cite">
  <pre wrap="">  Alan DeKok.
-
  </pre>
</blockquote>
Thanks<br>
<br>
-- Mathieu<br>
</body>
</html>