aioasuswrt icon indicating copy to clipboard operation
aioasuswrt copied to clipboard

feature: Nicer handling of disconnects

Open JJdeVries opened this issue 3 years ago • 4 comments

Cleanup of some common code between the two connections (ssh and telnet). Mainly reverted the locks and retries to a common class. This also adds locking to the SshConnection as there were some race issues there as well.

JJdeVries avatar Mar 09 '21 15:03 JJdeVries

It would be great if you could rebase this @JJdeVries

kennedyshead avatar Mar 24 '21 06:03 kennedyshead

This one should be a start of a major version upgrade imo! We should create a devel-branch and move this to that one. It requires alfa-testing from different setups so we don't accidentally break someones system.

kennedyshead avatar Mar 25 '21 07:03 kennedyshead

@JJdeVries Can you have a quick look here just to be sure I didnt break anything when I fixed the merge-conflict? Then its good to go IMO

kennedyshead avatar Oct 24 '21 10:10 kennedyshead

@kennedyshead @Chen-IL It seems that the commit 12717cd6 by @Chen-IL has changed all the line-endings in the asuswrt.py file from unix (\r\n) to dos (\n). This is rather unfortunate as now this branch has a lot of merge conflicts, and the git blame functionality is unusable as everything is now last changed by @Chen-IL .

I'm not really sure why this was not picked up during the review, as probably the entire file was shown in the diff?

Regarding this pull request. I've pushed a commit to also change the line-endings of asuswrt.py to [dos], although probably the result will be that now my name (and this specific commit) will show up in the git blame logging.

@Chen-IL please unsure you fix your editor to not overwrite the line-endings on saving the file, but to keep the current configured style.

JJdeVries avatar Nov 20 '21 21:11 JJdeVries