summaryrefslogtreecommitdiff
path: root/accel-pppd/accel-ppp.conf
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-10-22 19:23:02 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-10-22 19:23:02 +0400
commitc73bda7c792a850dc24dc22cf6065eaaad717b69 (patch)
tree760a5bde1d244bd5291e37fca4b7995baecf886d /accel-pppd/accel-ppp.conf
parenta3f7e7d1e26bcf1ddb4d86d06f8a3a976374eade (diff)
downloadaccel-ppp-c73bda7c792a850dc24dc22cf6065eaaad717b69.tar.gz
accel-ppp-c73bda7c792a850dc24dc22cf6065eaaad717b69.zip
ppp: implemented delayed unit close via unit cache
Due to kernel slowly destroys interfaces closing unit file descriptor blocks working threads which causes overall stuck. Thus (if unit-cache option is not zero) do not close unit file descriptor immediatly, but put it into unit cache. Additional helper thread was introduced which closes descriptors from unit cache which overruns configured unit cache size.
Diffstat (limited to 'accel-pppd/accel-ppp.conf')
-rw-r--r--accel-pppd/accel-ppp.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/accel-ppp.conf b/accel-pppd/accel-ppp.conf
index 93dca1fa..ef8c822c 100644
--- a/accel-pppd/accel-ppp.conf
+++ b/accel-pppd/accel-ppp.conf
@@ -56,7 +56,7 @@ ipv6-accept-peer-intf-id=1
lcp-echo-interval=20
#lcp-echo-failure=3
lcp-echo-timeout=120
-#unit-cache=1000
+unit-cache=1
[auth]
#any-login=0