From 43e8714797d40bcf63efab428dcd25f9caf1d52b Mon Sep 17 00:00:00 2001 From: Jakub Sławiński Date: Fri, 5 Aug 2005 21:45:31 +0200 Subject: v0.7.2 - Added: http proxy basic authorization - Fixed: logging initialization after some value checking - Fixed: auto-reconnect failure when --nossl option is set - Added: auto-reconnect when afserver is not reachable on start - Added: auto-reconnect after normal afserver quit - Added: per user statistics: idle time, amount of downloaded/uploaded bytes and current download/upload rate - Added: support for https proxies - Added: possibility to bind sockets on different interfaces - Fixed: receiving incomplete headers from afclient - Fixed: close user connections by afclient --- src/client_shutdown.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'src/client_shutdown.c') diff --git a/src/client_shutdown.c b/src/client_shutdown.c index 4828aeb..dee02d5 100644 --- a/src/client_shutdown.c +++ b/src/client_shutdown.c @@ -23,26 +23,19 @@ #include "client_shutdown.h" void -close_connections(int usernum, ConnectuserT** contable) +close_connections(int usernum, ConnectUser*** contable) { int i; if (*contable) { for (i = 0; i < usernum; ++i) { - if (((*contable)[i].state==S_STATE_OPEN) || ((*contable)[i].state==S_STATE_STOPPED)) { - close((*contable)[i].connfd); - freebuflist(&(*contable)[i].head); + if ((ConnectUser_get_state((*contable)[i]) == S_STATE_OPEN) || + (ConnectUser_get_state((*contable)[i]) == S_STATE_STOPPED)) { + close(ConnectUser_get_connFd((*contable)[i])); } + ConnectUser_free(&(*contable)[i]); } free(*contable); (*contable) = NULL; } } -void -clear_master_connection(clifd* master) -{ - if (master->ssl) { - SSL_free(master->ssl); - master->ssl = NULL; - } -} -- cgit v1.1