Forum Discussion

Gary_Shah_55283's avatar
Gary_Shah_55283
Icon for Nimbostratus rankNimbostratus
Apr 11, 2013

tcp close trigger for client_closed and server_closed event

We are looking to invoke table set command within irule during connection close and need to determine proper event to trigger it.

 

Using table on the link below, we are looking to trigger at the earliest point of FIN-WAIT or CLOSE-WAIT.

 

http://www.tcpipguide.com/free/t_TC...tion-2.htm

 

Following is routine that we will trigger within irule.

 

<<<

 

when [client or server]_CLOSED {

 

 

if { [info exists XXXX] } {

 

log local0 "client connection closing - invoking table set command"

 

table set $ip_addr $customer_id 60 60

 

}

 

 

log local0 "client connection closed"

 

}

 

 

>>>

 

 

My devcentral/askf5 search does not lead me to anything specfic about client_closed or server_closed trigger point.

 

 

In our case, client will make second connection attempt soon after original connection close and we want routine invoked at earliest point in the TCP CLOSE lifecycle.

 

 

Do appreciate assistance from the folks who have already figured this out or who can give me any pointers on this.

 

 

Thanks!

 

No RepliesBe the first to reply