diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-05-28 23:09:27 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-05-28 23:09:27 +0400 |
commit | 9ae4a0151805229face3385e6c966de90c7fec29 (patch) | |
tree | fbe668f826c9b24c8404ad77ebba7728803ebb4b /accel-pppd/ctrl/pptp | |
parent | 0a823d8d044f023a8fbe388e1b5235b660c5127b (diff) | |
download | accel-ppp-9ae4a0151805229face3385e6c966de90c7fec29.tar.gz accel-ppp-9ae4a0151805229face3385e6c966de90c7fec29.zip |
implemented delayed fd close (speeds up session termination process)
Diffstat (limited to 'accel-pppd/ctrl/pptp')
-rw-r--r-- | accel-pppd/ctrl/pptp/pptp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/pptp/pptp.c b/accel-pppd/ctrl/pptp/pptp.c index 2f0c5ef..9cbb51f 100644 --- a/accel-pppd/ctrl/pptp/pptp.c +++ b/accel-pppd/ctrl/pptp/pptp.c @@ -22,6 +22,7 @@ #include "iprange.h" #include "utils.h" #include "cli.h" +#include "fdtrash.h" #include "connlimit.h" @@ -76,7 +77,7 @@ static void disconnect(struct pptp_conn_t *conn) log_ppp_debug("pptp: disconnect\n"); triton_md_unregister_handler(&conn->hnd); - close(conn->hnd.fd); + fdtrash_add(conn->hnd.fd); if (conn->timeout_timer.tpd) triton_timer_del(&conn->timeout_timer); |