Commit graph

468 commits

Author SHA1 Message Date
Vadim Ushakov
7e438a90e1 Don't spam in log.info() from getRecentPeers() 2021-10-20 21:10:04 +07:00
Vadim Ushakov
b9ec7124f9 minor changes for debugging 2021-10-20 14:02:00 +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
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
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
570f854485 Fix a typo in Site.py 2020-11-04 21:58:32 +07:00
Vadim Ushakov
7354d712e0 Be more persistent in delivering site updates. 2020-11-04 16:08:01 +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
Vadim Ushakov
f1d91989d5 SiteAnnouncer: make use of a separate logger instance, not the Site's logger 2020-10-28 14:51:17 +07:00
Tamas Kocsis
ce5b4c3eda Don't non-existent files as bad 2020-09-18 18:45:42 +02:00
Tamas Kocsis
4da89580c1 Don't mark content.json as bad file if update failed 2020-09-18 18:43:54 +02:00
Tamas Kocsis
94765af0f3 Fix not downloaded site delete on startup 2020-09-08 19:28:41 +02:00
Tamas Kocsis
5a226baaa5 Reduce announce number for not recently added sites 2020-09-08 19:28:04 +02:00
Tamas Kocsis
b7bc197012 Only try to get more peers for timeout task if site is recently added 2020-09-08 19:26:18 +02:00
Tamas Kocsis
0907edb6b1 Remove obsolate auth_key generation 2020-09-04 17:35:48 +02:00
shortcutme
e0bf4dc9ec
Skip announcing to trackers with unsupported address 2020-03-02 17:08:43 +01:00
shortcutme
f0a706f6ab
Rev4455, Fix new sites file downloading 2020-02-21 13:58:11 +01:00
shortcutme
ae9a76a6c9
Fix double sites.json loading on startup when adding missing sites 2020-02-20 17:27:31 +01:00
shortcutme
9b85d8638d
Don't allow run site api calls when site is deleting 2020-02-20 17:25:56 +01:00
shortcutme
d2627f36d5
Pass all arguments on site need 2020-02-13 17:23:37 +01:00
shortcutme
8e79a7da63
Fix incomplete loading of dbschema.json 2020-02-07 16:37:37 +01:00
shortcutme
a9368bb3c8
Don't allow parallel sites.json loading 2020-01-22 16:35:40 +01:00
shortcutme
c6b07f1294
Wait until checkmodification spawned pools are finishing 2019-12-21 03:04:36 +01:00
shortcutme
3ccce46314
Wait until downloadContent pool finishes 2019-12-21 03:03:49 +01:00
shortcutme
7c1da5da52
Abilty to disable file bad file retry at end of download 2019-12-21 03:03:32 +01:00
shortcutme
c5de1447c8
onComplete will be triggered by WorkerManager 2019-12-21 03:02:53 +01:00
shortcutme
e16ace433c
Better logging in site download content 2019-12-21 03:02:36 +01:00
shortcutme
f3665b172f
Avoid unnecessary pool call 2019-12-17 15:07:32 +01:00
shortcutme
23b3cd3986
Better rebuild log message 2019-12-17 15:07:00 +01:00
shortcutme
f7ee6744af
Db busy event waited in getDb 2019-12-17 15:06:36 +01:00
shortcutme
ac45217816
Add reason for db close and rebuilds 2019-12-17 15:05:59 +01:00
shortcutme
8c51e81a0b
Fix double opening of dbs 2019-12-17 15:05:21 +01:00
shortcutme
c1df78b97f
Name threadpools 2019-12-17 14:43:33 +01:00
shortcutme
10c1986c54
Fix site list changing during listing 2019-12-17 14:31:55 +01:00
shortcutme
d7cabb47ca
Log task numbers on content.json start 2019-12-17 14:31:41 +01:00
shortcutme
8de1714f08
Fix onComplete call when donwload end 2019-12-17 14:31:12 +01:00
shortcutme
20ba9cd589
Log site download time 2019-12-17 14:30:29 +01:00
shortcutme
af1ac9bce8
Try to find already running task for file before start a new one 2019-12-17 14:30:14 +01:00
shortcutme
31a6e3ee9a
Don't allow clone to run in parallel 2019-12-17 14:29:48 +01:00
shortcutme
8ed7d0385d
If possible use loaded db to get db file inner_path 2019-12-17 14:21:47 +01:00
shortcutme
02d45e9c39
Use separate threadpool for batch site storage operations 2019-12-17 14:20:49 +01:00
shortcutme
2a402a0674
Use thread-safe mode to create directories 2019-12-17 14:18:54 +01:00