title: How to make HAProxy rotate more faster?
body: <p>I have set up rotating proxies with HAProxy successfully.</p>
  
  <p>Following is part of haproxy.cfg;</p>
  
  <pre><code>frontend RotatingProxies1000
          bind 0.0.0.0:1000
          default_backend Proxies1000
          option http_proxy
          option httpclose
          option http-use-proxy-header
  
  backend Proxies1000
          server fp0 1.1.1.1:8800
          server fp1 2.2.2.2:8800
          server fp2 3.3.3.3:8800
          server fp3 4.4.4.4:8800
          ...
          balance roundrobin
  </code></pre>
  
  <p>But i notice the rotation speed is very slow.</p>
  
  <p>I made test in the Firefox, I looked up the client ip address on <a href="http://whatismyipaddress.com/" rel="nofollow">http://whatismyipaddress.com/</a>.</p>
  
  <p>First it's 1.1.1.1. I refreshed the page, still 1.1.1.1, refreshed again, still 1.1.1.1.
  One minute later i refreshed again it became 2.2.2.2.</p>
  
  <p>How to make HAProxy rotate more faster?</p>
  
  <p>According to Baptiste and Willy's suggestions. I tried to add "mode http" and remove "option http_proxy".
  The current config, but it's still slow to rotate IPs:</p>
  
  <pre><code>global
          log 127.0.0.1   local0 notice
          maxconn 4096
          user haproxy
          group haproxy
          daemon
  
  defaults
          log     global
          mode    http
          option  httplog
          option  dontlognull
          retries 3
          maxconn 2000
          contimeout      5000
          clitimeout      50000
          srvtimeout      50000
  
  frontend RotatingProxies1000
          bind 0.0.0.0:1000
          default_backend Proxies1000
          #option http_proxy
          mode http
          option httpclose
          option http-use-proxy-header
  
  backend Proxies1000
          server fp0 1.1.1.1:8800
          server fp1 2.2.2.2:8800
          server fp2 3.3.3.3:8800
          server fp3 4.4.4.4:8800
          ...
          balance roundrobin
  </code></pre>