mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* problems with timers
@ 2002-03-29 16:31 chiranjeevi vaka
  0 siblings, 0 replies; only message in thread
From: chiranjeevi vaka @ 2002-03-29 16:31 UTC (permalink / raw)
  To: linux-kernel

Hello,

I have a problem regarding timers. I am trying to add
a new timer in TCP layer which will start in the 3-way
handshaking of TCP. In that timer driven function I am
just modifying the timer using mod_timer and I am
printing some debug message. 

I am deleting the timer whenever I receive FIN from
either peer. On one side when I receive a FIN in
TCP_FIN_WAIT1 or TCP_FIN_WAIT2 I am deleting the timer
and on the other side when I am in TCP_ESTABLISHED
state if I receive a FIN I am deleting the timer. 

This is working fine if I am calling the system call
cloase(sockid) from user level. But if I don't use
that system call or if I just press ctrl+c from user
level while data is passing between peers, then after
some time the timer is keep om triggering infinitely
and the system is hanging. Can you suggest me where
will I delete the timer in these cases.


Thank you,
Chiranjeevi

__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-29 16:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-29 16:31 problems with timers chiranjeevi vaka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®