http://www.perlmonks.org?node_id=1050215


in reply to Re^7: [FCGI.pm] - not threads-safe?
in thread [FCGI.pm] - not threads-safe?

FastCGI server - is just a tcp server with own communication protocol, like many others. It does not matter how it was designed more than 20 years ago, when perl has no ithreads and apache can run only cgi scripts.

Problem not in incorrect FastCGI usage and misunderstanding FastCGI specification, but in FCGI.pm implementation, that does not meet the modern requirements.

In context of this task there is no difference between threads and processes. I don't use shared variables, etc...

Please, suggest solution to shutdown thread correctly, if you know how.

Thanks.

Replies are listed 'Best First'.
Re^9: [FCGI.pm] - not threads-safe?
by BrowserUk (Patriarch) on Aug 20, 2013 at 19:07 UTC
    Problem not in incorrect FastCGI usage and misunderstanding FastCGI specification, but in FCGI.pm implementation, that does not meet the modern requirements.

    Then go ask the authors and maintainers of FCGI to re-write their perfectly working module to meet your "modern requirements".

    But be warned: they'll laugh their heads off at your suggestions and requirements. The idea of mixing FastCGI with threading is stupid.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.