[Top] [All Lists]

Re: [timers] net/ipv4

To: andrewm@xxxxxxxxxx
Subject: Re: [timers] net/ipv4
From: "David S. Miller" <davem@xxxxxxxxxx>
Date: Tue, 30 May 2000 21:47:03 -0700
Cc: kuznet@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <> (message from Andrew Morton on Wed, 31 May 2000 02:28:39 +0000)
References: <> from "Andrew Morton" at May 30, 0 10:14:42 pm <> <>
Sender: owner-netdev@xxxxxxxxxxx
   Date:   Wed, 31 May 2000 02:28:39 +0000
   From: Andrew Morton <andrewm@xxxxxxxxxx>

   > Of course. I repeat again and again, TCP use _reference_ _counting_.

   Bear with me Alexey, I'm Australian.  Where are the refcounts held?

For TCP, they are held in the socket.  See all the sock_get/sock_put
calls around adding/removing the TCP retransmit timer.

Only the last sock_put really free's up the socket in the end, and
this can be a timer :-)

David S. Miller

<Prev in Thread] Current Thread [Next in Thread>