summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/pppoe
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-05-28 23:09:27 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-05-28 23:09:27 +0400
commit9ae4a0151805229face3385e6c966de90c7fec29 (patch)
treefbe668f826c9b24c8404ad77ebba7728803ebb4b /accel-pppd/ctrl/pppoe
parent0a823d8d044f023a8fbe388e1b5235b660c5127b (diff)
downloadaccel-ppp-9ae4a0151805229face3385e6c966de90c7fec29.tar.gz
accel-ppp-9ae4a0151805229face3385e6c966de90c7fec29.zip
implemented delayed fd close (speeds up session termination process)
Diffstat (limited to 'accel-pppd/ctrl/pppoe')
-rw-r--r--accel-pppd/ctrl/pppoe/pppoe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/pppoe/pppoe.c b/accel-pppd/ctrl/pppoe/pppoe.c
index 41a0924d..8164b5c5 100644
--- a/accel-pppd/ctrl/pppoe/pppoe.c
+++ b/accel-pppd/ctrl/pppoe/pppoe.c
@@ -27,6 +27,7 @@
#endif
#include "connlimit.h"
+#include "fdtrash.h"
#include "pppoe.h"
@@ -117,7 +118,7 @@ static void disconnect(struct pppoe_conn_t *conn)
pppoe_send_PADT(conn);
- close(conn->disc_sock);
+ fdtrash_add(conn->disc_sock);
triton_event_fire(EV_CTRL_FINISHED, &conn->ppp);