Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

On your tarpit session include this line

timeout tarpit 10s
share|improve this answer
    
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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