From owner-freebsd-net Thu Nov 25 17:12:13 1999 Delivered-To: freebsd-net@freebsd.org Received: from oracle.dsuper.net (oracle.dsuper.net [205.205.255.1]) by hub.freebsd.org (Postfix) with ESMTP id BAFA214E98 for ; Thu, 25 Nov 1999 17:12:09 -0800 (PST) (envelope-from bmilekic@dsuper.net) Received: from oracle.dsuper.net (oracle.dsuper.net [205.205.255.1]) by oracle.dsuper.net (8.9.3/8.9.3) with ESMTP id UAA02830; Thu, 25 Nov 1999 20:12:06 -0500 (EST) Date: Thu, 25 Nov 1999 20:12:06 -0500 (EST) From: Bosko Milekic To: bg24484@binghamton.edu Cc: freebsd-net@FreeBSD.ORG Subject: Re: Timer to flush data? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 25 Nov 1999 bg24484@binghamton.edu wrote: !> !>Hi!, !> !>Data sitting in the send socket buffer is flushed when the send socket !>buffer is full and when the timer fires. !>What is the name of this timer and which function or counter is used by !>this timer. !>Any help would be appreciated. !> !>Thanx in advance, !>Roshan This timeout occurs at the protocol level, and for netinet, for instance, you should look at tcp_keepidle (available as a sysctl) and tcp_maxidle. For TCP, the procedure that you are probably looking for would be tcp_timer_2msl() -- it takes care of checking whether ETIMEDOUT should be returned in the case of a timeout (as opposed to waiting for a FIN forever). Have fun, Bosko. -- Bosko Milekic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message