lkml.org 
[lkml]   [2002]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectproblems with timers
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/
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.040 / U:0.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site