Branch: Tag:

2015-04-23

2015-04-23 09:18:32 by Martin Nilsson <nilsson@opera.com>

Be less aggressive with when to prune old sessions.

1009:   {    if (use_cache && s->identity)    { +  if( sizeof(session_cache) > max_sessions ) +  {    forget_old_sessions();    int to_delete = sizeof(session_cache)-max_sessions;    foreach(session_cache; string id;)
1019:    "garbing session %O due to max_sessions limit\n", id);    m_delete (session_cache, id);    } +  }    SSL3_DEBUG_MSG("SSL.Context->record_session: caching session %O\n",    s->identity);    session_cache[s->identity] = s;