From owner-freebsd-questions@FreeBSD.ORG Thu Nov 8 12:06:08 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2324716A47B for ; Thu, 8 Nov 2007 12:06:08 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from smtp.teledomenet.gr (smtp.teledomenet.gr [213.142.128.2]) by mx1.freebsd.org (Postfix) with ESMTP id C464E13C4AC for ; Thu, 8 Nov 2007 12:06:07 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: by smtp.teledomenet.gr (Postfix, from userid 58) id 9CE3E142431; Thu, 8 Nov 2007 14:06:00 +0200 (EET) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on smtp.teledomenet.gr X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.3 Received: from iris (unknown [192.168.1.71]) by smtp.teledomenet.gr (Postfix) with ESMTP id 17C9914227E; Thu, 8 Nov 2007 14:05:54 +0200 (EET) From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Thu, 8 Nov 2007 14:08:22 +0200 User-Agent: KMail/1.9.7 References: <4731E1A4.6020809@diomedia.be> In-Reply-To: <4731E1A4.6020809@diomedia.be> X-NCC-RegID: gr.telehouse MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711081408.22387.nvass@teledomenet.gr> Cc: Bram Subject: Re: TCP/IP questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2007 12:06:08 -0000 On Wednesday 07 November 2007 18:02:44 Bram wrote: > Hi all, > > Can you change the timeout for a tcp connection ? > I need to do the following: start a tcp connection , unplug the network > cable (it's actually wifi but the effect is the same),send some data > over the connection,wait 20 seconds , reinsert the network cable and > just keep working. > When you normally do this the connection will be dead. > Is there a way in freebsd to change this ? are there parameters wich you > can set so that the above would work (20 seconds without network can > happen) ? TCP using the default FreeBSD settings, can survive 20 secs of inactivity. It can be an application forced timeout. What application/protocol are talking about? Nikos