mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-08-10 18:31:50 +08:00
Fix typo maintainance -> maintenance
This commit is contained in:
committed by
Nikos Mavrogiannopoulos
parent
71318424f4
commit
5e0e286c27
+1
-1
@@ -151,7 +151,7 @@ unsigned int max;
|
||||
max = MAX(2*s->config->max_clients, DEFAULT_MAX_CACHED_TLS_SESSIONS);
|
||||
if (s->tls_db->entries >= max) {
|
||||
mslog(s, NULL, LOG_INFO, "maximum number of stored TLS sessions reached (%u)", max);
|
||||
need_maintainance = 1;
|
||||
need_maintenance = 1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
+5
-5
@@ -54,7 +54,7 @@
|
||||
int syslog_open = 0;
|
||||
static unsigned int terminate = 0;
|
||||
static unsigned int reload_conf = 0;
|
||||
unsigned int need_maintainance = 0;
|
||||
unsigned int need_maintenance = 0;
|
||||
static unsigned int need_children_cleanup = 0;
|
||||
|
||||
static void ms_sleep(unsigned ms)
|
||||
@@ -358,7 +358,7 @@ static void handle_children(int signo)
|
||||
|
||||
static void handle_alarm(int signo)
|
||||
{
|
||||
need_maintainance = 1;
|
||||
need_maintenance = 1;
|
||||
}
|
||||
|
||||
static void drop_privileges(main_server_st* s)
|
||||
@@ -596,9 +596,9 @@ static void check_other_work(main_server_st *s)
|
||||
}
|
||||
|
||||
/* Check if we need to expire any cookies */
|
||||
if (need_maintainance != 0) {
|
||||
need_maintainance = 0;
|
||||
mslog(s, NULL, LOG_INFO, "Performing maintainance");
|
||||
if (need_maintenance != 0) {
|
||||
need_maintenance = 0;
|
||||
mslog(s, NULL, LOG_INFO, "Performing maintenance");
|
||||
expire_tls_sessions(s);
|
||||
expire_banned(s);
|
||||
alarm(MAINTAINANCE_TIME(s));
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ void write_pid_file(void);
|
||||
void remove_pid_file(void);
|
||||
|
||||
/* set to 1 to start cleaning up cookies, sessions etc. */
|
||||
extern unsigned int need_maintainance;
|
||||
extern unsigned int need_maintenance;
|
||||
|
||||
struct listener_st {
|
||||
struct list_node list;
|
||||
|
||||
Reference in New Issue
Block a user