Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added backlog option

  • Loading branch information...
commit 8baafe7d49071de0408594405beab3389dcc377a 1 parent 6f3cb0c
Yuji Shimada authored June 20, 2012

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 7  lib/Plack/Handler/FCGI.pm
7  lib/Plack/Handler/FCGI.pm
@@ -21,6 +21,7 @@ sub new {
21 21
     $self->{nproc}       ||= 1 unless blessed $self->{manager};
22 22
     $self->{pid}         ||= $self->{pidfile}; # compatibility
23 23
     $self->{listen}      ||= [ ":$self->{port}" ] if $self->{port}; # compatibility
  24
+    $self->{backlog}     ||= 100;
24 25
     $self->{manager}     = 'FCGI::ProcManager' unless exists $self->{manager};
25 26
 
26 27
     $self;
@@ -38,7 +39,7 @@ sub run {
38 39
         unless ($self->{leave_umask}) {
39 40
             umask(0);
40 41
         }
41  
-        $sock = FCGI::OpenSocket( $self->{listen}->[0], 100 )
  42
+        $sock = FCGI::OpenSocket( $self->{listen}->[0], $self->{backlog} )
42 43
             or die "failed to open FastCGI socket: $!";
43 44
         unless ($self->{leave_umask}) {
44 45
             umask($old_umask);
@@ -280,6 +281,10 @@ Specify process title
280 281
 
281 282
 Send STDERR to STDOUT instead of the webserver
282 283
 
  284
+=item backlog
  285
+
  286
+Maximum length of the queue of pending connections
  287
+
283 288
 =back
284 289
 
285 290
 =head2 WEB SERVER CONFIGURATIONS

0 notes on commit 8baafe7

Please sign in to comment.
Something went wrong with that request. Please try again.