mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
better log messages
This commit is contained in:
@@ -47,7 +47,7 @@ int store_cookie_hash(main_server_st *s, struct stored_cookie_st* sc)
|
||||
size_t key;
|
||||
|
||||
if (s->cookie_db->entries >= MAX_COOKIES(s->config->max_clients)) {
|
||||
mslog(s, NULL, LOG_INFO, "Maximum number of cookies was reached (%u)", MAX_COOKIES(s->config->max_clients));
|
||||
mslog(s, NULL, LOG_INFO, "maximum number of cookies was reached (%u)", MAX_COOKIES(s->config->max_clients));
|
||||
need_maintainance = 1;
|
||||
return -1;
|
||||
}
|
||||
@@ -115,6 +115,7 @@ unsigned int todelete;
|
||||
/* if the hash is still full then delete the few first cookies */
|
||||
if (s->cookie_db->entries >= MAX_COOKIES(s->config->max_clients)) {
|
||||
todelete = MAX_COOKIES(s->config->max_clients)/5;
|
||||
mslog(s, NULL, LOG_INFO, "too many cookies present; expiring the first %u", todelete);
|
||||
sc = htable_first(&s->cookie_db->ht, &iter);
|
||||
while(sc != NULL) {
|
||||
if (todelete >= 0) {
|
||||
|
||||
@@ -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);
|
||||
mslog(s, NULL, LOG_INFO, "maximum number of stored TLS sessions reached (%u)", max);
|
||||
need_maintainance = 1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user