netdev
[Top] [All Lists]

Demonstration code on how to trigger tcp6_sock leak

To: netdev@xxxxxxxxxxx
Subject: Demonstration code on how to trigger tcp6_sock leak
From: Erik Hensema <erik@xxxxxxxxxxx>
Date: Sat, 24 Jan 2004 14:13:07 +0100
Reply-to: erik@xxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.5i
Hi,

I wrote some quick&dirty code showing the tcp6_sock leak in Linux 2.6.x.
The server part listens for incoming connections and accept()'s them. The
client will simply connect() to the server and close the connection.

Do a 'grep tcp6_sock /proc/slabinfo' before and after running the programs,
and you will clearly see the leak.

-- 
Erik Hensema (erik@xxxxxxxxxxx)

Attachment: server.c
Description: Text document

Attachment: client.c
Description: Text document

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