[erlang-questions] ssl session cache
Ingela Andin
ingela.andin@REDACTED
Tue Jan 12 17:31:39 CET 2016
Hi!
We have a backlog item to make sure only one poller validator is started.
The code now works as if the previous validator will always finish in 60 s.
Maybe that is what is causing your problems.
Regards Ingela Erlang/OTP - Team Ericsson AB
2016-01-12 16:04 GMT+01:00 Pawel Kraszewski <pawel@REDACTED>:
> Hello!
>
> I'm struggling with SSL session cache. I've already upgraded to 18.2.1
> (fixed some of my problems), yet one thing bothers me:
>
> lib/ssl-7.2/src/ssl_manager.erl line 242/243
>
> SessionLifeTime = proplists:get_value(session_lifetime, Opts,
> ?'24H_in_sec'),
>
> Its OK.
>
> Line 251/252
>
> Timer = erlang:send_after(SessionLifeTime * 1000 + 5000, self(),
> validate_sessions),
>
> It's OK. Gives initial addidtional 5s backoff.
>
> And than suddenly line 383/384
>
> Timer = erlang:send_after(?SESSION_VALIDATION_INTERVAL, self(),
> validate_sessions),
>
> From this time on SessionLifeTime "reload" is ignored and forced to 60s.
>
> I have potentially thousands of short-span SSL connections (simple
> JSON queries via SSL) and session cache grows quickly - even with
> session lifetime set to 10s.
>
> What gives?
> --
> Paweł Kraszewski
> http://www.kraszewscy.net
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160112/2a3108b1/attachment.htm>
More information about the erlang-questions
mailing list