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

Use more force on ctrl-c to kill program #13

Open
elonen opened this issue Jan 28, 2020 · 1 comment
Open

Use more force on ctrl-c to kill program #13

elonen opened this issue Jan 28, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@elonen
Copy link
Owner

elonen commented Jan 28, 2020

During hashing, client and master alike don't immediately exit. Perhaps it would be best to kill asyncio tasks immediately instead of trying to play nice.

Master doesn't write any files, and peers (re)hash their files anyway, so file corruption isn't really an issue.

@elonen elonen changed the title Ctrl-c doesn't always kill program Use more force on ctrl-c to kill program Jan 28, 2020
@elonen
Copy link
Owner Author

elonen commented Jan 28, 2020

Also, _hash_file() proceed in smaller bits instead of the whole chunk as in h = HashFunc().update(mm[p:(p+s)]).result() would probably make everything more responsive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant