Date: Fri, 5 Sep 1997 00:11:15 -0600 (MDT) From: Marc Slemko <marcs@znep.com> To: Brian McGovern <bmcgover@cisco.com> Cc: hackers@FreeBSD.ORG Subject: Re: Getting FTP to die when route disappears Message-ID: <Pine.BSF.3.95.970905000851.24903S-100000@alive.znep.com> In-Reply-To: <199709041557.LAA19312@bmcgover-pc.cisco.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Try setting net.inet.tcp.always_keepalive to 1 with sysctl. If that helps, you should either leave it that way (not a good idea, since it will behave that way for all connections) or add a setsockopt() to your ftp source to enable SO_KEEPALIVE. On Thu, 4 Sep 1997, Brian McGovern wrote: > I'm currently using several FreeBSD boxes to test file transfers to routers > under test. The problem that I'm having is that if a call drops, and the > route is deleted from the routing table, the FTP client just zones out, > waiting for the transfer to complete (I had one hang for ~ 2 days). Is > there any way to make it so if a route drops (ie - ping > reports "No route to host") to get FTP to realize it's route is down, and > abort the transfer? Thanks. > -Brian >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970905000851.24903S-100000>