From 11865d0baa7788c6a49c3f8bc0d552d2a3999bcb Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Mon, 4 Jun 2012 16:28:28 +0400 Subject: Revert "implemented delayed fd close (speeds up session termination process)" Low interface creation/deletion rate is kernel issue and should be fixed in 3.5. This reverts commit 9ae4a0151805229face3385e6c966de90c7fec29. --- accel-pppd/ctrl/pptp/pptp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'accel-pppd/ctrl/pptp') diff --git a/accel-pppd/ctrl/pptp/pptp.c b/accel-pppd/ctrl/pptp/pptp.c index 9cbb51f..2f0c5ef 100644 --- a/accel-pppd/ctrl/pptp/pptp.c +++ b/accel-pppd/ctrl/pptp/pptp.c @@ -22,7 +22,6 @@ #include "iprange.h" #include "utils.h" #include "cli.h" -#include "fdtrash.h" #include "connlimit.h" @@ -77,7 +76,7 @@ static void disconnect(struct pptp_conn_t *conn) log_ppp_debug("pptp: disconnect\n"); triton_md_unregister_handler(&conn->hnd); - fdtrash_add(conn->hnd.fd); + close(conn->hnd.fd); if (conn->timeout_timer.tpd) triton_timer_del(&conn->timeout_timer); -- cgit v1.2.3