{"action":"opened","issue":{"url":"https://api.github.com/repos/K2InformaticsGmbH/erlimem/issues/8","labels_url":"https://api.github.com/repos/K2InformaticsGmbH/erlimem/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/K2InformaticsGmbH/erlimem/issues/8/comments","events_url":"https://api.github.com/repos/K2InformaticsGmbH/erlimem/issues/8/events","html_url":"https://github.com/K2InformaticsGmbH/erlimem/issues/8","id":123780610,"number":8,"title":"Timeout of session authorization redesign","user":{"login":"c-bik","id":913008,"avatar_url":"https://avatars.githubusercontent.com/u/913008?v=3","gravatar_id":"","url":"https://api.github.com/users/c-bik","html_url":"https://github.com/c-bik","followers_url":"https://api.github.com/users/c-bik/followers","following_url":"https://api.github.com/users/c-bik/following{/other_user}","gists_url":"https://api.github.com/users/c-bik/gists{/gist_id}","starred_url":"https://api.github.com/users/c-bik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c-bik/subscriptions","organizations_url":"https://api.github.com/users/c-bik/orgs","repos_url":"https://api.github.com/users/c-bik/repos","events_url":"https://api.github.com/users/c-bik/events{/privacy}","received_events_url":"https://api.github.com/users/c-bik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/K2InformaticsGmbH/erlimem/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"c-bik","id":913008,"avatar_url":"https://avatars.githubusercontent.com/u/913008?v=3","gravatar_id":"","url":"https://api.github.com/users/c-bik","html_url":"https://github.com/c-bik","followers_url":"https://api.github.com/users/c-bik/followers","following_url":"https://api.github.com/users/c-bik/following{/other_user}","gists_url":"https://api.github.com/users/c-bik/gists{/gist_id}","starred_url":"https://api.github.com/users/c-bik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c-bik/subscriptions","organizations_url":"https://api.github.com/users/c-bik/orgs","repos_url":"https://api.github.com/users/c-bik/repos","events_url":"https://api.github.com/users/c-bik/events{/privacy}","received_events_url":"https://api.github.com/users/c-bik/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-12-24T09:25:11Z","updated_at":"2015-12-24T09:25:11Z","closed_at":null,"body":"Issue : https://github.com/K2InformaticsGmbH/dderl/issues/132\r\nBy : @stoch \r\n> For every wrong password I give in the DDerl login popup, I get a message similar to these two after > 10 minutes:\r\n> \r\n> 2015-10-12 08:17:59.158 [error] <0.20295.0>@erlimem_session:handle_info:243 [IMDR]\r\n> {erlimem_session,243} Session authorization timeout\r\n> 2015-10-12 08:18:40.016 [error] <0.20312.0>@erlimem_session:handle_info:243 [IMDR]\r\n> {erlimem_session,243} Session authorization timeout\r\n> \r\n> Can we avoid this resource issue under attack ?\r\n\r\n### Tesing\r\n```erlang\r\nf().\r\n{ok, EIS} = erlimem:open({tcp, {127,0,0,1}, 1236, [ssl]}, dderl).\r\n{erlimem_session, Pid} = EIS.\r\nEIS:auth(dderl, <<\"testing\">>, {pwdmd5,{<<\"system\">>,erlang:md5(<<\"change_on_install\">>)}}).\r\n```\r\n\r\n### Solution\r\n* remove long global timeout for spawn session process (TCP connect) through all auth steps till login\r\n* after spawning session process (also connecting TCP socket) each auth step must be completed within a short time (use short timeouts for each auth step)"}}