From owner-freebsd-stable@FreeBSD.ORG Fri Oct 7 15:17:11 2005 Return-Path: X-Original-To: freebsd-stable@FreeBSD.org Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FEF116A43A; Fri, 7 Oct 2005 15:17:11 +0000 (GMT) (envelope-from lefty@ene.asda.gr) Received: from mx3.asda.gr (ene.asda.gr [193.92.118.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29AFC43D45; Fri, 7 Oct 2005 15:17:10 +0000 (GMT) (envelope-from lefty@ene.asda.gr) Received: by mx3.asda.gr (Postfix, from userid 58) id 81F391146F; Fri, 7 Oct 2005 18:17:08 +0300 (EEST) X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on ene.asda.gr X-Spam-Level: X-Spam-Status: score=-103.8 autolearn=ham tests=ALL_TRUSTED,AWL,BAYES_00, USER_IN_WHITELIST Received: from [193.92.118.162] (lefty.ene.asda.gr [193.92.118.162]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Lefteris Tsintjelis", Issuer "ASDA Root CA" (verified OK)) by mx3.asda.gr (Postfix) with ESMTP id 8FFE11142D; Fri, 7 Oct 2005 18:16:42 +0300 (EEST) Message-ID: <43469157.6030603@ene.asda.gr> Date: Fri, 07 Oct 2005 18:16:39 +0300 From: Lefteris Tsintjelis Organization: ASDA User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gleb Smirnoff References: <4345A3DA.1020803@ene.asda.gr> <20051007103138.GN14542@cell.sick.ru> <43468078.1000201@ene.asda.gr> <20051007140744.GC14542@cell.sick.ru> In-Reply-To: <20051007140744.GC14542@cell.sick.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@FreeBSD.org Subject: Re: setsockopt and SO_RCV/SNDTIMEO X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Oct 2005 15:17:11 -0000 Gleb Smirnoff wrote: > On Fri, Oct 07, 2005 at 05:04:40PM +0300, Lefteris Tsintjelis wrote: > L> >You are expecting wrong from these socket options. They do not specify > L> >time after which socket should be closed, if no IO is done. > L> > L> Is there any easy build in functionality for that? > > Pardon, but I do not understand the question. Is there any easy way to setup IO timeouts (read/write) for a socket to close in case of inactivity?