Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Conversation

@gaetan1903
Copy link
Contributor

@gaetan1903 gaetan1903 commented Feb 26, 2021

timer configurable for Eel's shutdown detection mechanism, whereby when any websocket closes, it waits time_shutdown seconds (default 1 second), and then checks if there are now any websocket connections. If not, then Eel closes. In case the user has closed the browser and wants to exit the program.

Try to fix #355 issues: Increase the value shutdown_delay higher to avoid stopping Eel.

- Change default if time_shutdown is not correct int or float
- Accept string if is a digit
@samuelhwilliams
Copy link
Collaborator

Hey 👋 Thanks for the PR! I'd like to rename the arg and tweak the error checking to be stricter - can you give me permission to push a commit to your repo/branch please?

@gaetan1903
Copy link
Contributor Author

yes, I've already sent you an invitation.

Copy link
Collaborator

@samuelhwilliams samuelhwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@samuelhwilliams
Copy link
Collaborator

@ChrisKnott can't actually merge this but looks like a reasonable PR to add

@gaetan1903 gaetan1903 changed the title Add time_shutdown on the start () function parameter Add shutdown_delay on the start() function parameter Feb 27, 2021
fix flake8 warning
remplace shortcut `f` not stable on python3.6 by format
@gaetan1903
Copy link
Contributor Author

@samuelhwilliams

the "f" format shortcut is not stable in version 3.6,
I changed it to "format" to avoid the error on the tests

@gaetan1903 gaetan1903 closed this Oct 5, 2021
@ChrisKnott
Copy link
Collaborator

@gaetan1903 Do you still want this merged?

@gaetan1903
Copy link
Contributor Author

I want to merge it with new PR for HacktoberFest, if you can add topic HacktoberFest in this repository @ChrisKnott

@Zireael07
Copy link

What happened to merging this?

@gaetan1903
Copy link
Contributor Author

#529 it's already merge here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ERR_CONNECTION_REFUSED

4 participants