need help with timers

chiranjeevi vaka (
Thu, 28 Mar 2002 16:08:05 -0800 (PST)

Hi all,

I am trying to add my own timer in tcp layer to
implement different functionality. I am adding this
timer in sock structure. I can initialize the timer
and modify the timer in my timer handler function. I
want to delete the added timer while closing the

Right now I am doing this in the closing part of the
TCP. That is in tcp_fin function for cases


what is happeneing is if I call close(sockid) then
these functions are getting invoked and my timer is
deleting properly. If I don't call close(sockid) and
the normal user program terminates without calling the
close(sockid), then the timer is not getting deleted
and it is triggering always infinitely. So can you
please tell me where exactly I can delete the timer
however I close the connection, like from the user
level even if I don't call close explicitly or if I
press ctrl+c while data is passing between peers.

Thank you,

Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at