Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when one of the keys of replay_check_session_storage_opts is not set #57

Open
seriyps opened this issue Apr 21, 2020 · 0 comments

Comments

@seriyps
Copy link
Owner

seriyps commented Apr 21, 2020

Proxy crashes with

{function_clause,
 [{mtp_session_storage,do_clean,[mtp_session_storage,mtp_session_storage_histogram,
  #{max_age_minutes => 43200,max_memory_mb => 4096},count], 
  [{file,"/opt/mtproto_proxy/src/mtp_session_storage.erl"},{line,154}]},
 {lists,filtermap,2,[{file,"lists.erl"},{line,1317}]},
 {mtp_session_storage,handle_info,2,[{file,"/opt/mtproto_proxy/src/mtp_session_storage.erl"},{line,110}]},
 {gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,616}]},
 {gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,686}]},
 {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}

if some of the keys of replay_check_session_storage_opts config is not set. Eg:

{replay_check_session_storage_opts,
 #{max_age_minutes => 43200,
   max_memory_mb => 4096}  % max_count is not set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant