You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8a73b41a42
- Before this PR, `ServerState.JOINING` was announced only once. This announcement quickly expires in case of the full-size BLOOM, since loading blocks takes several minutes. This PR fixes it, so `ServerState.JOINING` is announced periodically in a thread until blocks are loaded. - This PR also makes the `Server` class a non-thread, so it runs in the main thread and can catch `KeyboardInterrupt`. This is important, since if we are downloading blocks right now, we need to stop it and send the `ServerState.OFFLINE` message. Note that `ModuleContainer` is still a thread. - (minor) For the sake of readability, I moved the `ModuleContainer.create()` definition, so it is now defined before `Server.__init__()` (this is because `.create()` is invoked first). |
2 years ago | |
---|---|---|
.. | ||
bloom | 2 years ago | |
client | 2 years ago | |
server | 2 years ago | |
utils | 2 years ago | |
__init__.py | 2 years ago | |
constants.py | 2 years ago | |
data_structures.py | 2 years ago | |
dht_utils.py | 2 years ago |