<!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">
The doc-page tells for the module below:<br>
"If a Perl module performs protracted operation, (for example DNS
lookups, database queries, etc), then the process that is running the
Perl script is completely tied up for the duration of script. Therefore
embedded Perl scripts should be extremely careful to limit themselves
to short, predictable operations."<br>
<br>
So it blocks too.<br>
<br>
<br>
<br>
thomas<br>
<br>
Steve Chu schrieb:
<blockquote
 cite="mid:4ac0d28c0710240822g23f9bf2egd4cc5231d780cf5d@mail.gmail.com"
 type="cite">
  <pre wrap="">I mean, why mod_perl not blocked?

On 10/24/07, Igor Sysoev <a class="moz-txt-link-rfc2396E" href="mailto:is@rambler-co.ru">&lt;is@rambler-co.ru&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">On Wed, Oct 24, 2007 at 10:14:19AM +0800, Steve Chu wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">What about mod_perl?
      </pre>
    </blockquote>
    <pre wrap="">There is experimenatl ngx_http_perl_module:
<a class="moz-txt-link-freetext" href="http://wiki.codemongers.com/NginxEmbeddedPerlModule">http://wiki.codemongers.com/NginxEmbeddedPerlModule</a>

    </pre>
    <blockquote type="cite">
      <pre wrap="">On 10/23/07, Manlio Perillo <a class="moz-txt-link-rfc2396E" href="mailto:manlio_perillo@libero.it">&lt;manlio_perillo@libero.it&gt;</a> wrote:
      </pre>
      <blockquote type="cite">
        <pre wrap="">Steve Chu ha scritto:
        </pre>
        <blockquote type="cite">
          <pre wrap="">Sorry,all
    I made a mistake, nginx is using epoll, so blocked I/O will be a
big problem.
          </pre>
        </blockquote>
        <pre wrap="">Not a "really big" problem, since nginx can use multiple worker processes.

Of course mod_wsgi *should* not be used in the "main" http server, but
it should be used "standalone", as a replacement for a "builtin" server
and behind another nginx proxy if possible.

With Python this is very effective, since all Python http servers are
written in pure Python and use a thread based model.

With PHP the builtin server is written in C, and uses a prefork model
(if I'm right) so I don't know is a nginx mod_php is worth the effort.



Regards  Manlio Perillo


        </pre>
      </blockquote>
      <pre wrap="">
--
Steve Chu
<a class="moz-txt-link-freetext" href="http://stvchu.org">http://stvchu.org</a>

      </pre>
    </blockquote>
    <pre wrap="">--
Igor Sysoev
<a class="moz-txt-link-freetext" href="http://sysoev.ru/en/">http://sysoev.ru/en/</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
</blockquote>
<br>
</body>
</html>