Commit graph

224 commits

Author SHA1 Message Date
shortcutme
16bfb35109
No positive preference for peers with more than 5 shared sites to avoid centralization 2017-04-09 11:57:35 +02:00
shortcutme
03f3e9e4fd
Rev2025, Publish remotely outdated files on modification check 2017-04-07 21:17:25 +02:00
shortcutme
8ea8e8c28a
Publish incoming files to more peers 2017-04-07 18:17:30 +02:00
shortcutme
4e846774b4
Log formatting 2017-02-27 00:13:30 +01:00
shortcutme
a6be8ddc2d
Connectable peers ordered 2017-02-27 00:13:18 +01:00
shortcutme
b65670b9e4
Don't remove peers with atleast 5 sites 2017-02-27 00:12:55 +01:00
shortcutme
ea635d4630
Only totally connected peers counted to peer cleanup 2017-02-27 00:12:36 +01:00
shortcutme
2e9737c149
Faster and better getConnectedpeers 2017-02-27 00:11:57 +01:00
shortcutme
0f8de2b7c1
Use latest added peers and use reputation for listModifications and publishing 2017-02-27 00:11:45 +01:00
shortcutme
2188c5d9fa
Use getRecentPeers for publishing 2017-02-27 00:11:02 +01:00
shortcutme
b5d879c1cd
Start site update check on site re-connect 2017-02-27 00:10:27 +01:00
shortcutme
fd365a19f7
Use getRecentPeers for listModification 2017-02-27 00:09:59 +01:00
shortcutme
adbaadae81
Allow 100 sec timeout for listModification 2017-02-27 00:09:41 +01:00
shortcutme
09ad4133fb
20 sec timeout for listModified 2017-02-27 00:08:46 +01:00
shortcutme
bad2a79f05
Reason for connection closing 2017-02-27 00:02:24 +01:00
shortcutme
26bad8d05b
Fix needConnections bug 2017-02-24 01:16:22 +01:00
shortcutme
4aff146812
Log giving up on a file 2017-02-22 11:29:35 +01:00
shortcutme
221aa16433
Rev1929, Fix file filed on not bad files 2017-02-19 12:32:41 +01:00
shortcutme
63b609f725
Give up files after 30 tries 2017-02-19 00:52:31 +01:00
shortcutme
2eef0bded1
Only increment bad_file if internet connection is active 2017-02-19 00:52:20 +01:00
shortcutme
66e2bfd76b
Reset bad_files on full update 2017-01-29 19:03:22 +01:00
shortcutme
db7dad6731
Don't delete content.json files from bad_files on update 2017-01-29 19:03:08 +01:00
shortcutme
2b389e4e85
Support since parameter for siteUpdate 2017-01-29 19:02:08 +01:00
shortcutme
2dc981496b
Rev1821, Show progress bar on publishing 2017-01-16 13:41:57 +01:00
shortcutme
f89f351b3c Dont copy content.json-default file 2016-12-14 00:43:08 +01:00
shortcutme
34ab2bad49 Clone inner path dest fix 2016-12-14 00:42:52 +01:00
shortcutme
62501d00b1 Use content.json-default if exists 2016-12-14 00:42:31 +01:00
shortcutme
10772a704e Root path parameter for cloning 2016-12-08 17:14:55 +01:00
shortcutme
2e08d68d87 Remove content.json files from bad file list 2016-11-16 11:19:08 +01:00
shortcutme
73b3c8db55 Use site object on delete from contentdb 2016-11-07 23:42:28 +01:00
shortcutme
713a2f88a9 Query and send more hashfield 2016-11-07 23:42:13 +01:00
shortcutme
30a2116abf Only announce if trackers 2016-11-07 23:42:00 +01:00
shortcutme
6acc81cb50 Retry bad files in separate thread 2016-11-07 23:41:25 +01:00
shortcutme
af571deb16 Peer cleanup ttl based on peer numbers 2016-11-07 23:40:04 +01:00
shortcutme
e6a82d4c64 Pooled file downloads to handle large ammount of files better 2016-11-07 23:39:45 +01:00
shortcutme
83b3dc8fbe Autodownload optional pattern check to separate function to allow plugins 2016-11-07 23:39:04 +01:00
shortcutme
d1ad7e0850 Stats for total optional files and downloaded optional files in a site 2016-11-07 23:36:04 +01:00
shortcutme
bb23bc7b3c Send diff to second batch of peers 2016-10-02 14:22:32 +02:00
shortcutme
117a82c059 Delete bad_files without size 2016-09-28 20:35:53 +02:00
shortcutme
67c9921ace Only add non-connected peers to publish if necessary 2016-09-17 21:01:16 +02:00
shortcutme
4690a111bf Push updates to newer clients first 2016-09-17 21:00:40 +02:00
shortcutme
65e5d05a9e Delete cleanup bad files without file info on update 2016-09-17 21:00:20 +02:00
shortcutme
a6c4a77e13 Rev1510, Fix site save without loaded SiteManager 2016-09-06 14:52:55 +02:00
shortcutme
d9bbb20743 Rev1509, Fix site delete 2016-09-06 10:16:09 +02:00
shortcutme
59205088d2 Move site deletion to dedicted function 2016-09-05 13:55:51 +02:00
shortcutme
37a3b4678d Fix user file pre-content.json downloading 2016-09-04 18:01:09 +02:00
shortcutme
365f0cd646 Reset files on cloning 2016-09-04 18:00:51 +02:00
shortcutme
a1f0c20afc Rename checkFiles to updateBadFiles 2016-09-04 17:59:29 +02:00
shortcutme
b0a85b0669 Dont check every file on update 2016-09-04 17:58:18 +02:00
shortcutme
9528d333bd Retry failed files on download end 2016-09-04 17:57:44 +02:00
shortcutme
4437a99330 Use pool to download large ammount of content.json files 2016-09-04 17:57:32 +02:00
shortcutme
8f158cbc8f Make listmodified query use content.db cache 2016-09-04 17:56:33 +02:00
shortcutme
135a9b8f5c Fix content.json retry 2016-09-04 17:54:57 +02:00
shortcutme
a614545467 Faster site settings load 2016-09-04 17:51:55 +02:00
shortcutme
1bd6e2f493 Cache bad_files and optional hashfield in sites.json 2016-09-04 17:43:30 +02:00
shortcutme
ecb5885dba Cache file sizes and modification date in sqlite db 2016-09-04 17:41:04 +02:00
shortcutme
709dc854e7 Add site to site manager if required 2016-08-29 11:17:19 +02:00
shortcutme
d76c1ca98e Also cleanup connections for smaller sites 2016-08-26 11:42:23 +02:00
shortcutme
274414a54b Give up user's content.json after 5 retrys 2016-08-16 19:56:18 +02:00
shortcutme
b40b3e2d85 Fix config size_limit parsing 2016-08-16 19:55:55 +02:00
shortcutme
92e4dd64d1 Dont recalculate site size on update 2016-08-15 13:56:17 +02:00
ZeroNet
67f75c4bef Skip archived user files 2016-08-10 12:42:29 +02:00
ZeroNet
0275954fb7 Tracker log total peers 2016-08-10 12:42:13 +02:00
ZeroNet
44dc4c41c9 Wait for user's content.json on file request 2016-08-10 12:41:35 +02:00
ZeroNet
e5e76a4ef5 Do not reload the whole site on update command 2016-08-10 12:41:04 +02:00
ZeroNet
021a084796 Peers query optimize 2016-08-10 12:40:17 +02:00
ZeroNet
1ec00947ad Save site on content.json arrive 2016-08-10 12:36:20 +02:00
ZeroNet
f38f4c3758 Use SiteManager to save site 2016-08-10 12:35:40 +02:00
ZeroNet
2852bbc657 Remove unnecessary site savings 2016-08-10 12:35:17 +02:00
HelloZeroNet
36e969ed1f Fix siteSign without connection server 2016-05-05 12:11:35 +02:00
HelloZeroNet
639a834658 Keep minimum 5 connections per site 2016-04-29 02:58:00 +02:00
HelloZeroNet
e53f56ed30 Cleanup connections with less sites first 2016-04-25 02:25:11 +02:00
HelloZeroNet
73c69d54bc Dont save settings on every announce 2016-04-20 23:32:43 +02:00
HelloZeroNet
23389dc31e Formatting 2016-04-20 23:30:25 +02:00
HelloZeroNet
38057c2e03 Log site config save time 2016-04-20 23:29:26 +02:00
HelloZeroNet
cd5cdd580a Re-publish modifications to less peers 2016-04-18 00:42:26 +02:00
HelloZeroNet
3bdde14821 Log patch size 2016-04-10 23:12:34 +02:00
HelloZeroNet
bbf1bc163d Extra debug messages, cleanup unused lines 2016-04-10 13:25:11 +02:00
HelloZeroNet
9c1ea71d2f Try to use diff before downloading the file 2016-04-06 14:01:03 +02:00
HelloZeroNet
7ee8eead23 Remove duplicate peers from publish queue 2016-04-06 14:00:40 +02:00
HelloZeroNet
82b960c641 Pass diffs to other users 2016-04-06 13:59:53 +02:00
HelloZeroNet
ab1aaea7f5 Calculate and send diffs on publish 2016-04-06 13:57:19 +02:00
HelloZeroNet
8f39ed2467 Cloned site updating 2016-04-06 13:50:05 +02:00
HelloZeroNet
5a34448ba1 Less verbose logging 2016-04-06 13:39:17 +02:00
HelloZeroNet
c8b949cef5 Save last received update time from peer to avoid send the same update on publish 2016-03-30 23:05:43 +02:00
HelloZeroNet
09197ef71e Dont publish twice 2016-03-26 01:33:37 +01:00
HelloZeroNet
437a9b79a8 Less verbose site downloading 2016-03-19 18:06:07 +01:00
HelloZeroNet
a692640e46 Ability to skip check files on update 2016-03-18 19:19:16 +01:00
HelloZeroNet
2c4f582437 Mark site as failed updating if query modifications failed 2016-03-18 19:18:59 +01:00
HelloZeroNet
cd2aa033b4 Allow the site owner to modify banned users file 2016-03-17 01:56:25 +01:00
HelloZeroNet
77ac1ae796 Keep connections opened regardless prot opened status 2016-03-16 23:24:57 +01:00
HelloZeroNet
6187abe56f Remove active peers discrimination in peer cleanup 2016-03-16 21:11:34 +01:00
HelloZeroNet
6f4b896bce Always publish to 5 peers and remove discrimination of active peers 2016-03-16 21:11:04 +01:00
HelloZeroNet
1cf0e0eb21 Always prefer publishing to connected peers 2016-03-16 00:40:01 +01:00
HelloZeroNet
11e09adda7 Longer timeout for non connected peers publishing 2016-03-16 00:39:09 +01:00
HelloZeroNet
f735862977 Switch back to 3 thread publishing on large sites 2016-03-12 23:07:41 +01:00
HelloZeroNet
0897154584 Rev966, New Greenlet debug hook to support Gevent 1.1.0, Publish to 8 peers on external publish request, Dont try to download banned user files, Check user files even if its own site 2016-03-11 12:39:39 +01:00
HelloZeroNet
48db062b49 Rev966, Display user quota in sidebar, Fix non-root content.json publishing in sidebar, Publish to same ammount of passive peers as limit, Fix site address case bug 2016-03-09 15:30:04 +01:00
HelloZeroNet
e891a10e54 Rev957, Sidebar displays onion peers in graph, Sidebar display bad file retry number, Sidebar site Update/Pause/Delete, Ratelimit sidebar update, Encoded typo, Fix onion findHashId, More retry for bad files, Log file path errors, Testcase for self findhashIds, Testcase for Tor findHashId, Better Tor version parse, UiWebsocket callback on update/pause/resume/delete, Skip invalid postMessage messages 2016-03-09 00:48:57 +01:00
HelloZeroNet
08005499fb Rev936, Fix Bootstrapper test without tormanager, Bootstrapper return latest announced peers, Only create 3 threads for passive peers 2016-03-04 19:59:59 +01:00