Date: Wed, 26 Oct 2005 15:27:28 +0400 From: "Artem Kuchin" <matrix@itlegion.ru> To: "FreeBSD questions" <freebsd-questions@freebsd.org> Subject: How to terminate TCP connection? Message-ID: <00fc01c5da20$41801990$0c00a8c0@Artem> References: <20051026034133.47941.qmail@web36215.mail.mud.yahoo.com> <20051026103032.GN39882@cirb503493.alcatel.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi! I am running several jails. Each jail runs many services includinh SMTP, POP,IMAP, HTTP. Somtimes i need to restart all jails. So, i /etc/rc.d/jail stop And then i wait until jls shows nothing. However, it usually takes very long or unacceptably long because FreebBSD does not delete jail until all connections to it are gone. So, i have no processes running in a jail, but netstat -n show several connections (usually SYN_FIN1, SYN_FIN2, LAST_ACK states) and they hang there for a very long time. Usually, i have to reboot the server to finaly get rid of all jails and connctions. But sometimes I need to restart only one jail and have the same problem and have to wait for 20-30 minutes until all connections die. Clients are ready to kill me at such moments. So, the question, Is there a way to kill off stuck tcp connection (or actually ANY connection which are shown by netstat) or maybe there is a way to force jail termination without waiting until all connection are gone. Artem
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00fc01c5da20$41801990$0c00a8c0>