Skip to content

Improvement handling router login failures#1

Open
Skopik wants to merge 1 commit into
comtihon:masterfrom
Skopik:login_failure_handling
Open

Improvement handling router login failures#1
Skopik wants to merge 1 commit into
comtihon:masterfrom
Skopik:login_failure_handling

Conversation

@Skopik

@Skopik Skopik commented Jan 26, 2015

Copy link
Copy Markdown

Frequently I was experiencing failures to log in to the router (with correct credentials; I am not sure what the cause of the failures was), so I updated your code to handle such failures. I made the api_connect function wait for the result. Now, if the login fails (["!trap", "=message=cannot log in"] is received), it is repeated after one second - until the login succeeds. The code with this modification has been tested for over 2 months and works without problems.

…l login failures. The me_logic.erl module reads the login result on the API and in case of a failure the me_connector.erl module retries to log in.
@comtihon

Copy link
Copy Markdown
Owner

Good!
I do not know, why theese failures appear, so I switched to use only ssh part of erotik.
By the way - If password is wrong - will it cycle?

@Skopik

Skopik commented Jan 27, 2015

Copy link
Copy Markdown
Author

Yes, it will. I did not consider the wrong-password case. I admit that
these two cases cannot be differetiated.

2015-01-26 14:51 GMT+01:00 Valery notifications@github.com:

Good!
I do not know, why theese failures appear, so I switched to use only ssh
part of erotik.
By the way - If password is wrong - will it cycle?


Reply to this email directly or view it on GitHub
#1 (comment).

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

Successfully merging this pull request may close these issues.

2 participants