OSDN Git Service

socketoptionにkeepaliveを指定できるようにした。
[ultramonkey-l7/ultramonkey-l7-v3.git] / l7directord / l7directord
index 5bdfc32..35b13eb 100644 (file)
@@ -987,10 +987,10 @@ sub validate_config {
                 config_error($line, 'ERR0124', $config);
             }
             my @option_value = split /,/, $value;
-            # OPTION:transparent,deferaccept,nodelay,cork,quickackon|quickackoff
+            # OPTION:transparent,deferaccept,nodelay,cork,keepalive,quickackon|quickackoff
             for my $option (@option_value) {
                $option =~ s/ //g;
-                if($option !~ /^transparent|deferaccept|nodelay|cork|quickackon|quickackoff$/) {
+                if($option !~ /^transparent|deferaccept|nodelay|cork|keepalive|quickackon|quickackoff$/) {
                     config_error($line, 'ERR0124', $config);
                 }
             }
@@ -4953,6 +4953,10 @@ Set TCP_NODELAY option to the Client and RealServer socket.
 
 Set TCP_CORK option to the Client and RealServer socket.
 
+=item B<keepalive>
+
+Set SO_KEEPALIVE option to the Client and RealServer socket.
+
 =item B<quickackon> or B<quickackoff>
 
 Set or unset TCP_QUICKACK option to the Client and RealServer socket.