What OS are you using?
It looks like all linux kernels since 2.6.32 has implemented TCP_USER_TIMEOUT; which would definitely be the better option if it is available to you.
This is something I have long done.
Hm. Makes me wonder why you are asking here, if you already have a solution?
In reply to Re^9: Timeout for an established connection
by BrowserUk
in thread Timeout for an established connection
by 0day
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |