In our situation the client timeout must be small because the long waiting clients should be disconnected, but we have an IP range of open proxies which we wan't to block with tarpit.

As our testing the tarpit timeout cannot be greater than the client timeout. How can I achieve to have a greater tarpit timeout in HAProxy than the global client timeout?


On your tarpit session include this line

timeout tarpit 10s
  • I said that it cannot be greater then global client timeout, in our case the actual client timeout is 4000ms and the tarpit is 4s and it does not work. – KARASZI István Nov 4 '11 at 14:53
  • After you send a connection to tarpit, the client timeout doesn´t matter, the timeout connect value is used, unless you specify the timeout tarpit value. – Marcelo Bittencourt Nov 7 '11 at 18:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.