-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve #3 [rt.cpan.org #70609] - load order tweak
delay the call to FCGI::Request until the first call to ->new to remove the need to have the ENV variables set in a BEGIN block in the calling script add import options for those ENV variables as socket_path and listen_queue so they can be set at module use rather than ENV settings, which is somewhat cleaner. however if the ENV variables are set then favour those update documentation to reflect above changes, as well as some general cleanup to the perldoc
- Loading branch information
Showing
6 changed files
with
148 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ lib/CGI/Fast.pm | |
Makefile.PL | ||
MANIFEST This list of files | ||
README | ||
t/fast.t | ||
t/001_basic.t | ||
t/002_import.t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!perl -w | ||
|
||
my $fcgi; | ||
BEGIN { | ||
local $@; | ||
eval { require FCGI }; | ||
$fcgi = $@ ? 0 : 1; | ||
} | ||
|
||
use Test::More tests => 2; | ||
|
||
# Shut up "used only once" warnings. | ||
() = $CGI::Q; | ||
|
||
SKIP: { | ||
skip( 'FCGI not installed, cannot continue', 2 ) unless $fcgi; | ||
|
||
use CGI::Fast | ||
socket_path => ':9000', | ||
listen_queue => 50 | ||
; | ||
|
||
is( $CGI::Fast::socket,':9000','imported socket_path' ); | ||
is( $CGI::Fast::queue,50,'imported listen_queue' ); | ||
}; |