diff options
| author | Emil Williams | 2025-08-21 00:12:20 +0000 |
|---|---|---|
| committer | Emil Williams | 2025-08-21 00:12:20 +0000 |
| commit | d5c3ef85f9324b81a179284fedf02e1658a7620a (patch) | |
| tree | 21d639f551200e771f88db53a2bbe2cefce2ae8b /gorillanest.pl.fcgi | |
| parent | 33c7281c610623e84985bd1104236167a1ca06c7 (diff) | |
| download | gorillanest-d5c3ef85f9324b81a179284fedf02e1658a7620a.tar.xz gorillanest-d5c3ef85f9324b81a179284fedf02e1658a7620a.tar.zst | |
Optional Socketing & Redundant config.pl
Diffstat (limited to 'gorillanest.pl.fcgi')
| -rwxr-xr-x | gorillanest.pl.fcgi | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gorillanest.pl.fcgi b/gorillanest.pl.fcgi index a9d77c0..7dc343f 100755 --- a/gorillanest.pl.fcgi +++ b/gorillanest.pl.fcgi @@ -11,8 +11,7 @@ BEGIN { require 'gorillanest.pl.cgi'; } try { open STDERR, '>', LOG_FILE or die LOG_FILE . ": $!"; - my $sock = FCGI::OpenSocket(SOCKET_FILE, 100); - my $request = FCGI::Request(\*STDIN, \*STDOUT, \*STDERR, \%ENV, $sock); + my $request = FCGI::Request( \*STDIN, \*STDOUT, \*STDERR, \%ENV, BARE_REQUEST ? 0 : FCGI::OpenSocket(SOCKET_FILE, SOCKET_MAX_CONNECTIONS)); while($request->Accept() >= 0) { master(); } |
