| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | # | 
| 2 |  |  |  |  |  |  | # | 
| 3 |  |  |  |  |  |  | #  Copyright (C) 2006-2010 Andrew Speer . All rights | 
| 4 |  |  |  |  |  |  | #  reserved. | 
| 5 |  |  |  |  |  |  | # | 
| 6 |  |  |  |  |  |  | #  This file is part of WebDyne::Request::FastCGI | 
| 7 |  |  |  |  |  |  | # | 
| 8 |  |  |  |  |  |  | #  WebDyne::Session is free software; you can redistribute it and/or modify | 
| 9 |  |  |  |  |  |  | #  it under the terms of the GNU General Public License as published by | 
| 10 |  |  |  |  |  |  | #  the Free Software Foundation; either version 2 of the License, or | 
| 11 |  |  |  |  |  |  | #  (at your option) any later version. | 
| 12 |  |  |  |  |  |  | # | 
| 13 |  |  |  |  |  |  | #  This program is distributed in the hope that it will be useful, | 
| 14 |  |  |  |  |  |  | #  but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| 15 |  |  |  |  |  |  | #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
| 16 |  |  |  |  |  |  | #  GNU General Public License for more details. | 
| 17 |  |  |  |  |  |  | # | 
| 18 |  |  |  |  |  |  | #  You should have received a copy of the GNU General Public License | 
| 19 |  |  |  |  |  |  | #  along with this program; if not, write to the Free Software | 
| 20 |  |  |  |  |  |  | #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA | 
| 21 |  |  |  |  |  |  | # | 
| 22 |  |  |  |  |  |  | # | 
| 23 |  |  |  |  |  |  | package WebDyne::Request::FastCGI::Constant; | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | #  Pragma | 
| 27 |  |  |  |  |  |  | # | 
| 28 | 1 |  |  | 1 |  | 5 | use strict qw(vars); | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 40 |  | 
| 29 | 1 |  |  | 1 |  | 6 | use vars qw($VERSION @ISA %EXPORT_TAGS @EXPORT_OK @EXPORT %Constant); | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 100 |  | 
| 30 | 1 |  |  | 1 |  | 5 | no warnings qw(uninitialized); | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 226 |  | 
| 31 |  |  |  |  |  |  | local $^W=0; | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  |  | 
| 34 |  |  |  |  |  |  | #  Version information. Must be all on one line | 
| 35 |  |  |  |  |  |  | # | 
| 36 |  |  |  |  |  |  | $VERSION='1.002'; | 
| 37 |  |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  |  | 
| 39 |  |  |  |  |  |  | #  The guts | 
| 40 |  |  |  |  |  |  | # | 
| 41 |  |  |  |  |  |  | %Constant = ( | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | #  A placeholder for per-location WebDyne settings, e.g., WebDyneHandler, etc. | 
| 45 |  |  |  |  |  |  | # | 
| 46 |  |  |  |  |  |  | WEBDYNE_DIR_CONFIG		    =>  undef, | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  |  | 
| 49 |  |  |  |  |  |  | #  Warn on errors ? Some FastCGI implementations write to error logs (good), others send to client (bad) | 
| 50 |  |  |  |  |  |  | # | 
| 51 |  |  |  |  |  |  | WEBDYNE_FASTCGI_WARN_ON_ERROR   =>  undef, | 
| 52 |  |  |  |  |  |  |  | 
| 53 |  |  |  |  |  |  |  | 
| 54 |  |  |  |  |  |  | #  Max requests on socket if not given see FCGI::OpenSocket | 
| 55 |  |  |  |  |  |  | # | 
| 56 |  |  |  |  |  |  | WEBDYNE_FASTCGI_BACKLOG	    =>  4, | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  |  | 
| 59 |  |  |  |  |  |  | ); | 
| 60 |  |  |  |  |  |  |  | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | #  Export constants to namespace, place in export tags | 
| 63 |  |  |  |  |  |  | # | 
| 64 |  |  |  |  |  |  | require Exporter; | 
| 65 |  |  |  |  |  |  | require WebDyne::Constant; | 
| 66 |  |  |  |  |  |  | @ISA=qw(Exporter WebDyne::Constant); | 
| 67 |  |  |  |  |  |  | +__PACKAGE__->local_constant_load(\%Constant); | 
| 68 |  |  |  |  |  |  | map { ${$_}=$Constant{$_} } keys %Constant; | 
| 69 |  |  |  |  |  |  | @EXPORT=map { '$'.$_ } keys %Constant; | 
| 70 |  |  |  |  |  |  | @EXPORT_OK=@EXPORT; | 
| 71 |  |  |  |  |  |  | %EXPORT_TAGS=(all => [@EXPORT_OK]); | 
| 72 |  |  |  |  |  |  | $_=\%Constant; |