Commit graph

4099 commits

Author SHA1 Message Date
Vadim Ushakov
348a4b0865 Add support for building ubuntu:20.04-based docker images + some automation 2021-11-06 21:19:42 +07:00
Vadim Ushakov
f7372fc393 Remove __slots__ from Peer, the slot system doesn't work well with classes extended by plugins anyway 2021-11-06 13:16:43 +07:00
Vadim Ushakov
b7a3aa37e1 Sidebar Plugin: display more detailed statistics about peers 2021-11-05 23:38:38 +07:00
Vadim Ushakov
b6b23d0e8e In Site.updater(), properly detect the case when peer has no file at all, not just an older version. 2021-11-03 17:15:43 +07:00
Vadim Ushakov
e000eae046 Add new configuration option: simultaneous_connection_throttle_threshold 2021-11-03 16:06:06 +07:00
Vadim Ushakov
1863043505 Update ChangeLog-0.8.0.md 2021-11-03 12:59:49 +07:00
Vadim Ushakov
d32d9f781b Move getIpType() from helper to ConnectionServer 2021-11-03 12:57:13 +07:00
Vadim Ushakov
168c436b73 Add new configuration variables and temporarily disable Site.persistent_peer_req
New configuration options:

site_announce_interval_min
site_announce_interval_max

site_peer_check_interval_min
site_peer_check_interval_max

site_update_check_interval_min
site_update_check_interval_max

site_connectable_peer_count_max
site_connectable_peer_count_min

Site.persistent_peer_req is temporarily disabled since it makes excessive pressure on the network when working over TOR and needs some reworking.
2021-10-27 20:57:44 +07:00
Vadim Ushakov
77e0bb3650 PeerDb plugin: save and restore fields time_response and connection_error 2021-10-27 18:54:58 +07:00
Vadim Ushakov
ef69dcd331 Implement Send Back LRU cache to reduce useless network transfers 2021-10-27 01:06:12 +07:00
Vadim Ushakov
32eb47c482 a small fix in Peer 2021-10-26 22:32:28 +07:00
Vadim Ushakov
f484c0a1b8 fine-tuning FileServer 2021-10-26 17:40:03 +07:00
Vadim Ushakov
645f3ba34a Reorganization of Peer class and peer-related Site's methods 2021-10-26 17:38:40 +07:00
Vadim Ushakov
93a95f511a Limit the pex request frequency, interval is 120 secs for each peer 2021-10-25 17:59:35 +07:00
Vadim Ushakov
dff52d691a Small improvements in FileServer 2021-10-25 17:09:16 +07:00
Vadim Ushakov
1a8d30146e Fix typos in comments 2021-10-25 16:18:35 +07:00
Vadim Ushakov
8f908c961d Fine-tuning PeerConnector 2021-10-25 16:12:00 +07:00
Vadim Ushakov
ce971ab738 Don't increment bad_file failed tries counter on rediscovering the same file on update()
Do increment it only on actual fileFailed() event.
2021-10-25 13:18:43 +07:00
Vadim Ushakov
1fd1f47a94 Fix detection of the broken Internet connection on the app start up 2021-10-25 12:53:37 +07:00
Vadim Ushakov
b512c54f75 Implement new logic for waiting for connected peers when updating or publishing a site 2021-10-24 23:53:08 +07:00
Vadim Ushakov
b4f94e5022 Make use of waitForPeers() when running FileServer-driven update() 2021-10-23 21:44:41 +07:00
Vadim Ushakov
e612f93631 Spawn message loops for outgoing connections in a sepatare pool managed by ConnectionServer 2021-10-23 21:41:14 +07:00
Vadim Ushakov
fe24e17baa Fix the prev commit 2021-10-23 21:40:41 +07:00
Vadim Ushakov
1b68182a76 FileServer: don't schedule multiple updates for the same site in parallel 2021-10-22 17:18:24 +07:00
Vadim Ushakov
1ef129bdf9 Fix "changed size during iteration" in verifyFiles() 2021-10-22 14:38:05 +07:00
Vadim Ushakov
19b840defd Implement new websocket command serverSetOfflineMode 2021-10-22 02:59:28 +07:00
Vadim Ushakov
e3daa09316 Improve the file server shutdown logic and display the shutdown progress bar in the UI 2021-10-22 00:30:42 +07:00
Vadim Ushakov
77d2d69376 Replace file_server.sites with file_server.getSites() in ChartCollector.py 2021-10-22 00:27:47 +07:00
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