Date: Sun, 26 Feb 1995 22:30:21 -0800 (PST) From: Tom Samplonius <tom@haven.uniserve.com> To: hackers@FreeBSD.org Subject: pppd inactivity timeout? Message-ID: <Pine.BSF.3.91.950226222335.20527H-100000@haven.uniserve.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.950226222335.20527H-100000>