FCGI::...ection(3pm)
β¨ NAME β¨
okay so welcome to FCGI::Client::Connection β a Perl module (yes, from the User Contributed Perl Documentation corner of the universe π«Ά) and it's literally just connection to FastCGI server. that's the whole vibe. π
π¦ DESCRIPTION π¦
this module handles the connection to a FastCGI server. that's it, that's the job, and it does it. slay.
π ATTRIBUTES π
sockβ the socket object. the actual little wire goblin doing the talking πtimeoutβ a read only integer value, and the default is 10 seconds β° (so if your server ghosts you, this is how long you wait before giving up π)
πΈ METHODS πΈ
my ($stdout, $stderr, $appstatus) = $self->request($env, $content)
here's the main character method, bestie β¨ and look at that signature, it's giving everything:
my ($stdout, $stderr, $appstatus) = $self->request($env, $content)
so, the deets:
$envis the environment hash, same as CGI π$contentis the request body string π- this method returns the
$stdoutand$stderrstrings π«Ά - when an error happens, it returns
undefβ no cap, that's the error signal π $appstatusis the status code of the FastCGI server, and it's one of the following codes:
#define FCGI_REQUEST_COMPLETE 0
#define FCGI_CANT_MPX_CONN 1
#define FCGI_OVERLOADED 2
#define FCGI_UNKNOWN_ROLE 3
these constants are defined at FCGI::Client::Constat. periodt. π
π§ FAQ π§
why don't support FCGI_KEEP_CONN?
okay so real talk π«Ά:
FCGI_KEEP_CONNis not used by lighttpd'smod_fastcgi.c, andmod_fast_cgifor apache. andFCGI.xsdoesn't support it either π- seems
FCGI_KEEP_CONNis not used in the real world. iykyk π¦
β sign-off β
that's the page, bestie β brought to you by perl v5.42.0, dated 2018-07-17, and honestly? iconic for its time. go forth and FastCGI responsibly πβ¨π
π¦ where this page comes from
- opensuse-leap 16.0: perl-FCGI-Client 0.90.0-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms