[erlang-bugs] SSL cache delete bug.

Jan Jacobs hpjcon@REDACTED
Tue Jun 21 20:06:43 CEST 2011


Hi,

I am getting a lot of the following errors in the log files:
=ERROR REPORT==== 20-Jun-2011::05:27:31 ===
Error in process <0.1702.0> on node 'maxman@REDACTED' with exit value: 
{undef,[{ssl_session_cache,delete,[{8088,<<32 bytes>>}]}]}

I managed to track it down to:

In the ssl_manager.erl, lines 273 and 280 it sets up timer to clean the 
cache. (see below)
    Line 273: timer:apply_after(?CLEAN_SESSION_DB, CacheCb, delete, 
[{{Host, Port}, ID}]),
    Line 280: timer:apply_after(?CLEAN_SESSION_DB, CacheCb, delete, 
[{Port, ID}]),

CacheCB is equal to ssl_session_cache.erl.
ssl_session_cache.erl only has a two parameter delete (delete(Cache, Key)).
The Cache is not been passed as the first parameter.

Cheers
Jan



More information about the erlang-bugs mailing list