diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-06-04 16:28:28 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-06-04 16:28:28 +0400 |
commit | 11865d0baa7788c6a49c3f8bc0d552d2a3999bcb (patch) | |
tree | bb6e0212d634d07488096e402866a72b54ac2881 /accel-pppd/ppp/ppp.c | |
parent | cfbc9780376c463a5977c455765d73f02102fee9 (diff) | |
download | accel-ppp-xebd-11865d0baa7788c6a49c3f8bc0d552d2a3999bcb.tar.gz accel-ppp-xebd-11865d0baa7788c6a49c3f8bc0d552d2a3999bcb.zip |
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.
Diffstat (limited to 'accel-pppd/ppp/ppp.c')
-rw-r--r-- | accel-pppd/ppp/ppp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c index ef8aa36..4f3beb9 100644 --- a/accel-pppd/ppp/ppp.c +++ b/accel-pppd/ppp/ppp.c @@ -19,7 +19,6 @@ #include "ppp.h" #include "ppp_fsm.h" #include "log.h" -#include "fdtrash.h" #include "spinlock.h" #include "mempool.h" @@ -224,9 +223,9 @@ static void destablish_ppp(struct ppp_t *ppp) triton_md_unregister_handler(&ppp->chan_hnd); triton_md_unregister_handler(&ppp->unit_hnd); - fdtrash_add(ppp->unit_fd); - fdtrash_add(ppp->chan_fd); - fdtrash_add(ppp->fd); + close(ppp->unit_fd); + close(ppp->chan_fd); + close(ppp->fd); ppp->unit_fd = -1; ppp->chan_fd = -1; |