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
connection.
Right now I am doing this in the closing part of the
TCP. That is in tcp_fin function for cases
TCP_ESTABLISHED
TCP_FIN_WAIT1
TCP_FIN_WAIT2
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,
Chiranjeevi.
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/