patch-2.1.127 linux/net/ipv4/timer.c
Next file: linux/net/ipv4/udp.c
Previous file: linux/net/ipv4/tcp_timer.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Sat Nov 7 11:00:32 1998
- Orig file:
v2.1.126/linux/net/ipv4/timer.c
- Orig date:
Thu Sep 17 17:53:40 1998
diff -u --recursive --new-file v2.1.126/linux/net/ipv4/timer.c linux/net/ipv4/timer.c
@@ -5,7 +5,7 @@
*
* TIMER - implementation of software timers for IP.
*
- * Version: $Id: timer.c,v 1.12 1998/08/28 01:15:29 davem Exp $
+ * Version: $Id: timer.c,v 1.14 1998/11/07 11:55:43 davem Exp $
*
* Authors: Ross Biro, <bir7@leland.Stanford.Edu>
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
@@ -74,7 +74,8 @@
/* Only process if socket is not in use. */
if (atomic_read(&sk->sock_readers)) {
- sk->timer.expires = jiffies+HZ;
+ /* Try again later. */
+ sk->timer.expires = jiffies+HZ/20;
add_timer(&sk->timer);
return;
}
@@ -111,11 +112,10 @@
case TIME_CLOSE:
/* We've waited long enough, close the socket. */
- sk->state = TCP_CLOSE;
- net_delete_timer (sk);
+ tcp_set_state(sk, TCP_CLOSE);
+ sk->shutdown = SHUTDOWN_MASK;
if (!sk->dead)
sk->state_change(sk);
- sk->shutdown = SHUTDOWN_MASK;
net_reset_timer (sk, TIME_DONE, TCP_DONE_TIME);
break;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov