From owner-freebsd-isp Fri Aug 17 6: 8:35 2001 Delivered-To: freebsd-isp@freebsd.org Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (Postfix) with ESMTP id DE6BE37B401; Fri, 17 Aug 2001 06:08:19 -0700 (PDT) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by cactus.fi.uba.ar (8.11.3/8.9.3) with ESMTP id f7HD6dE10181; Fri, 17 Aug 2001 10:06:44 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Fri, 17 Aug 2001 10:06:39 -0300 (ART) From: Fernando Gleiser To: Cc: Subject: Re: Killing TCP/IP connection. In-Reply-To: <55978.998052757@verdi.nethelp.no> Message-ID: <20010817095635.E9633-100000@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 17 Aug 2001 sthaug@nethelp.no wrote: > That's fine for the one process per client case. But I'm talking about > the general case where *one* process handles the connections to many > clients, and you specifically *don't* have a separate process per client. > In such cases it would be very useful to have a command line facility > to kill *one* connection without interfering with the other connections > handled by the same process. If you are using TCP and the clients are on a remote machine, there is no standard way to shutdown a connection from an external process. You would need to sniff the net to know the sequence numbers involved and then send a RST. What you can do is modify the server to use some kind of IPC in which you tell it "I want to shutdown the socket connectod from ip,port to ip,port" and the server then shutown(2)s the socket. Fer > > Steinar Haug, Nethelp consulting, sthaug@nethelp.no > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message