From owner-freebsd-questions@FreeBSD.ORG Wed Nov 7 16:21:32 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 C971316A41A for ; Wed, 7 Nov 2007 16:21:32 +0000 (UTC) (envelope-from bram@diomedia.be) Received: from mail.bvsnv.info (cust142-140.dsl.versadsl.be [62.166.142.140]) by mx1.freebsd.org (Postfix) with ESMTP id 47BB413C4AC for ; Wed, 7 Nov 2007 16:21:32 +0000 (UTC) (envelope-from bram@diomedia.be) Received: from [192.168.1.50] ([192.168.1.50]) by mail.bvsnv.info (8.13.6/8.13.6) with ESMTP id lA7G1sEU022759 for ; Wed, 7 Nov 2007 17:01:54 +0100 (CET) (envelope-from bram@diomedia.be) Message-ID: <4731E1A4.6020809@diomedia.be> Date: Wed, 07 Nov 2007 17:02:44 +0100 From: Bram User-Agent: Thunderbird 1.5.0.12 (X11/20071018) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Wed, 07 Nov 2007 16:21:32 -0000 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) ? If not is there a common way to tunnel these tcp connections over udp so that the problem doesn't happen. I found a perl script http://www.jankratochvil.net/project/tcpoverudp but it behaves kind off strange on freebsd, with this script I was able to get the behaviour I wanted. Sorry for my poor english, this is very difficult to explain