# iRule to increase tcp timeout for given client

**URL:** <https://community.f5.com/t/irule-to-increase-tcp-timeout-for-given-client/60219>\
**Category:** Technical Forums\
**Tags:** irules, big-ip, timeout, application-delivery, tcp\
**Created:** [May 12, 2020, 5:22pm UTC](https://community.f5.com/t/irule-to-increase-tcp-timeout-for-given-client/60219 "2020-05-12T17:22:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bartek](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@Bartek](https://community.f5.com/u/Bartek)\
**Post date:** [May 12, 2020, 5:22pm UTC](https://community.f5.com/t/irule-to-increase-tcp-timeout-for-given-client/60219/1 "2020-05-12T17:22:48Z")

</div>

Hi,

I need to increase a tcp timeout value. when a certain client connects to VIP. I did this:

```tcl
when CLIENT_ACCEPTED {
 if { [IP::addr [IP::client_addr] equals 10.10.10.10] } {
    TCP::idletime 600
 }
}

```

But it resulted in an error:

“increase\_idle\_timeout:3: error: [undefined procedure: TCP::idletime][TCP::idletime 600]”

On the other hand this was accepted:

```tcl
when CLIENT_ACCEPTED {
 if { [IP::addr [IP::client_addr] equals 10.10.10.10] } {
    IP::idle_timeout 600
 }
}

```

What is the difference between IP::idle\_timeout and TCP::idletime?

I’m running 11.5.7

---

<div class="post-metadata">

**Author:** ![Bartek](https://avatars.discourse-cdn.com/v4/letter/b/bcef8e/32.png) [@Bartek](https://community.f5.com/u/Bartek)\
**Post date:** [May 15, 2020, 1:53pm UTC](https://community.f5.com/t/irule-to-increase-tcp-timeout-for-given-client/60219/2 "2020-05-15T13:53:08Z")

</div>

Wrong event - the TCP::idletime fires perfectly after SERVER\_CONNECTED
