Hi,

On Tue, Oct 09, 2012 at 02:24:44PM +0100, kgardenia42 wrote:
> I did try that and it didn't seem to help.
> 
> I can reproduce with the following config:
> 
> global
>         log 127.0.0.1   local0
>         log 127.0.0.1   local1 notice
>         maxconn 4096
>         #chroot /var/lib/haproxy
>         user haproxy
>         group haproxy
>         daemon
>         #debug
>         #quiet
> 
> defaults
>         log     global
>         mode    http
>         #option  httplog
>         option dontlognull
>         option redispatch
>         retries 3
>         maxconn 2000
>         contimeout      5000
>         clitimeout      50000
>         srvtimeout      50000
> 
> listen mypool :8010
>         mode tcp
>         option tcplog
>         balance roundrobin
> 
>         stick-table type binary len 36 size 30k expire 1h
>         stick on payload(10,36)
> 
>         tcp-request inspect-delay 5s
> 
>         server pool1 213.167.82.125:80
>         server pool2 213.167.82.124:80

This inspect delay does nothing. The inspect-delay is a timeout for
TCP request rules. For instance :

          tcp-request inspect-delay 5s
          tcp-request content accept if { req_len ge 36 }

You have more examples of exactly this usage in the documentation
of the "tcp-request" rules.

Then it will wait for either 5s or 36 bytes in the buffer before
proceeding.

Willy


Reply via email to