Commit graph

4071 commits

Author SHA1 Message Date
Vadim Ushakov
c36cba7980 Implement new websocket command serverSetPassiveMode 2021-10-21 18:45:08 +07:00
Vadim Ushakov
ddc4861223 Site.py: code cleanup 2021-10-21 16:18:40 +07:00
Vadim Ushakov
cd3262a2a7 code style fix in Peer.py 2021-10-21 14:50:54 +07:00
Vadim Ushakov
b194eb0f33 Rename param to reflect its meaning: check_site_on_reconnect -> update_site_on_reconnect 2021-10-21 14:37:53 +07:00
Vadim Ushakov
5744e40505 Redesign the scheduling of site checking and verification
Save `check_files_timestamp` and `verify_files_timestamp` in sites.json and run checks only when the time interval is expired.
2021-10-21 13:19:10 +07:00
Vadim Ushakov
5ec970adb8 Add option verify_files to Site.update() to allow the real content verification check, not just the simple file size-based one
Add more informative updateWebsocket() notification in Site.update() and SiteStorage.verifyFiles()
2021-10-21 02:24:16 +07:00
Vadim Ushakov
75bba6ca1a Be more verbose about starting/stopping FileServer threads 2021-10-20 22:40:34 +07:00
Vadim Ushakov
7e438a90e1 Don't spam in log.info() from getRecentPeers() 2021-10-20 21:10:04 +07:00
Vadim Ushakov
46bea95002 Small cleanup in TrackerSharePlugin.py 2021-10-20 20:43:52 +07:00
Vadim Ushakov
2a25d61b96 Fix https://github.com/HelloZeroNet/ZeroNet/issues/2757 2021-10-20 19:01:55 +07:00
Vadim Ushakov
ba6295f793 Add tests directly to SafeRe.py 2021-10-20 18:28:03 +07:00
Vadim Ushakov
23ef37374b Various fixes in ChangeLog-0.8.0.md 2021-10-20 17:39:39 +07:00
Vadim Ushakov
488fd4045e Update ChangeLog-0.8.0.md 2021-10-20 17:28:03 +07:00
Vadim Ushakov
769a2c08dd Fix possible infinite growing of the SafeRe regexp cache by limiting the cache size 2021-10-20 17:25:47 +07:00
Vadim Ushakov
d2b65c550c Minor fix in ChangeLog-0.8.0.md 2021-10-20 16:43:13 +07:00
Vadim Ushakov
d5652eaa51 Update ChangeLog-0.8.0.md 2021-10-20 16:42:21 +07:00
Vadim Ushakov
164f5199a9 Add default onion v3 tracker addresses 2021-10-20 16:28:28 +07:00
Vadim Ushakov
72e5d3df64 Fix typo in "All server stopped" 2021-10-20 14:28:22 +07:00
Vadim Ushakov
1c73d1a095 Merge TORv3 patch
From: http://127.0.0.1:43110/19HKdTAeBh5nRiKn791czY7TwRB1QNrf1Q/?:users/1HvNGwHKqhj3ZMEM53tz6jbdqe4LRpanEu:zn:dc17f896-bf3f-4962-bdd4-0a470040c9c5

Related issues:
https://github.com/HelloZeroNet/ZeroNet/issues/2351
https://github.com/HelloZeroNet/ZeroNet/issues/1292
2021-10-20 14:26:07 +07:00
Vadim Ushakov
b9ec7124f9 minor changes for debugging 2021-10-20 14:02:00 +07:00
Vadim Ushakov
abbd2c51f0 Update ChangeLog-0.8.0.md 2021-03-31 12:55:45 +07:00
Vadim Ushakov
be65ff2c40 Make more efforts of looking for peers when publishing a site 2021-03-31 11:27:19 +07:00
Vadim Ushakov
c772592c4a New default ZeroHello address 2021-03-31 11:20:37 +07:00
Vadim Ushakov
5d6fe6a631 Fix a bug introduced in c84b413f58 2021-03-31 11:16:06 +07:00
Vadim Ushakov
adaeedf4d8 Dockerfile: move to alpine:3.13 in order to use newer tor version 2021-03-31 10:51:17 +07:00
Vadim Ushakov
8474abc967 Fix building the docker image 2021-03-31 09:39:22 +07:00
Vadim Ushakov
986dedfa7f Trying to fix incomplete updates
Partially fixes https://github.com/HelloZeroNet/ZeroNet/issues/2476

Approx. every 10th update check is now performed with `since = 0`
2021-03-25 12:41:53 +07:00
Vadim Ushakov
0151546329 ContentManager.py: move duplicated code to new method serializeForSigning() 2021-03-24 09:51:07 +07:00
Vadim Ushakov
d0069471b8 Don't raise VerifyError with misleading message "Invalid old-style sign" when the file has no sign at all. 2021-03-24 08:04:23 +07:00
Vadim Ushakov
1144964062 Make the site block check usable from plugins and core modules
Fixes https://github.com/HelloZeroNet/ZeroNet/issues/1888
2021-03-23 23:16:35 +07:00
Vadim Ushakov
6c8849139f ZNE-ChangeLog/ChangeLog-0.8.0.md: typos 2021-03-23 19:05:51 +07:00
Vadim Ushakov
3677684971 Add ZNE-ChangeLog/ChangeLog-0.8.0.md 2021-03-23 19:02:43 +07:00
Vadim Ushakov
4e27e300e3 Delete plugin/AnnounceShare/ 2021-03-23 16:01:36 +07:00
Vadim Ushakov
697b12d808 Fix naming. verifyContentJson() should be verifyContentFile() 2020-11-04 22:13:21 +07:00
Vadim Ushakov
570f854485 Fix a typo in Site.py 2020-11-04 21:58:32 +07:00
Vadim Ushakov
5d5b3684cc ContentManager: split verifyFile() into 2 functions and always log the verify error at INFO level 2020-11-04 18:22:14 +07:00
Vadim Ushakov
7354d712e0 Be more persistent in delivering site updates. 2020-11-04 16:08:01 +07:00
Vadim Ushakov
6c8b059f57 FileServer: small fixes 2020-11-04 16:05:01 +07:00
Vadim Ushakov
27ce79f044 Fix a typo in FileServer 2020-11-04 09:56:29 +07:00
Vadim Ushakov
90d01e6004 Fix a tor issue introduced in the latest changes 2020-11-04 09:25:44 +07:00
Vadim Ushakov
325f071329 Fixes and refactoring in Connection.py, Peer.py 2020-11-03 23:25:29 +07:00
Vadim Ushakov
c84b413f58 Refactor ConnectionServer, FileServer; fix bugs introduced in previous commits 2020-11-03 21:21:33 +07:00
Vadim Ushakov
ba16fdcae9 Fix a typo 2020-11-02 09:04:38 +07:00
Vadim Ushakov
ea21b32b93 Add explicit invalidation and expiration of site update timestamps 2020-10-31 18:05:50 +07:00
Vadim Ushakov
e8358ee8f2 More fixes on the way to reliable site updates. 2020-10-31 03:59:54 +07:00
Vadim Ushakov
d1b9cc8261 Redesign the Internet outage detection. Improvements in FileServer threads. 2020-10-30 23:28:16 +07:00
Vadim Ushakov
829fd46781 Redesign the site updating strategy in Site.py, SiteAnnouncer.py, FileServer.py 2020-10-30 14:36:08 +07:00
Vadim Ushakov
adf40dbb6b Refactor SiteAnnouncer.announce 2020-10-29 12:57:16 +07:00
Vadim Ushakov
8fd88c50f9 Redesign cleanupSites() and all the related stuff and rename it to periodic maintenance. 2020-10-28 23:38:17 +07:00
Vadim Ushakov
511a90a5c5 Redesign Site.needConnections() 2020-10-28 20:31:48 +07:00