From owner-freebsd-hackers Sun Feb 26 22:22:08 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id WAA02004 for hackers-outgoing; Sun, 26 Feb 1995 22:22:08 -0800 Received: from haven.uniserve.com (haven.uniserve.com [198.53.215.121]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id WAA01993 for ; Sun, 26 Feb 1995 22:22:03 -0800 Received: by haven.uniserve.com id <147>; Sun, 26 Feb 1995 22:30:36 -0800 Date: Sun, 26 Feb 1995 22:30:21 -0800 (PST) From: Tom Samplonius To: hackers@FreeBSD.org Subject: pppd inactivity timeout? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: hackers-owner@FreeBSD.org Precedence: bulk I would like to add an inactivity timeout to pppd so that pppd would hang-up after 10 minutes or so of inactivity on the line. The simplest way I could find of doing this is to enable a new timeout using the timeout() function provided to start enable the timeout, then use back-to-back calls of untimeout() and timeout() to reset the timeout value within the io() function. Anyways, I have two questions: - will it work? will it affect stability? - is there a better way of doing this? calling untimeout() and timeout() upon every invocation of io() may induce alot of overhead... Comments are welcome... Tom