OpenVZ Forum


Home » Mailing lists » Devel » [patch 0/2][NETNS45][V3] remove timewait sockets at namespace exit
Re: [patch 2/2][NETNS45][V3] remove timewait sockets at cleanup [message #20939 is a reply to message #20938] Fri, 28 September 2007 10:06 Go to previous message
den is currently offline  den
Messages: 494
Registered: December 2005
Senior Member
Daniel Lezcano wrote:
> From: Daniel Lezcano <dlezcano@fr.ibm.com>
> 
> Denis Lunev spotted that if we take a reference to the network namespace
> with the timewait sockets, we will need to wait for their expiration to
> have the network namespace freed. This is a waste of time, the timewait
> sockets are for avoiding to receive a duplicate packet from the network,
> if the network namespace is freed, the network stack is removed, so no
> chance to receive any packets from the outside world.
> 
> This patchset remove/destroy the timewait sockets when the
> network namespace is freed.
> 
> The exit method registered by netns_register_subsys is put in the tcp.c
> file and not in inet_timewait_sock.c. The reasons are we browse the tcp
> established hash table and I don't want to add references to tcp in inet
> timewait sockets and, furthermore, dccp protocol uses the inet timewait 
> sock too. IMHO, if we status to cleanup dccp timewait too, we should add
> a exit method in dccp file.
> 
> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [patch 0/3][NETNS45][V2] remove timewait sockets at namespace exit
Next Topic: [PATCH] net: Add network namespace clone & unshare support.
Goto Forum:
  


Current Time: Sun Aug 24 10:23:22 GMT 2025

Total time taken to generate the page: 0.07578 seconds