Commit Graph

251 Commits

Author SHA1 Message Date
Lola Dam 753396ac0c Try and catch block for dbRebuild (#2047)
* Try and catch block for dbRebuild

* Use self.log.error and not logging

* Use self.log.error and not logging in SiteStorage also

* Check if the rebuild is working
2019-06-23 14:21:50 +02:00
shortcutme fce30baa12
Check files in offline mode on update 2019-05-30 04:28:09 +02:00
shortcutme 4222c31b3e
Don't push body of content.json with updates if larger than 10kb 2019-05-30 04:26:41 +02:00
shortcutme f414f0746c
Don't update site in offline mode 2019-04-15 15:48:16 +02:00
shortcutme 998ec3eb4f
Disable all site serving using a global offline argument 2019-04-15 15:06:25 +02:00
radfish f6e3a74567 [setuptools packaging] access modules via imports (#1969) 2019-04-15 12:31:33 +02:00
shortcutme 9fd059aef8
Give admin permission to updater site 2019-04-08 18:12:58 +02:00
shortcutme b5b0626251
Add name for websocket event on site deletion 2019-03-29 02:30:26 +01:00
shortcutme b0b9a4d33c
Change to Python3 coding style 2019-03-15 21:06:59 +01:00
shortcutme c2b879ccab
Rev3831, Fix Stats page compatibility with latest gevent 2019-01-31 00:39:45 +01:00
shortcutme 31a7effa5f
Rev3827, Share FileServer between sites for non-main CLI commands 2019-01-29 03:17:24 +01:00
shortcutme 3e82595193
Store site download time 2019-01-20 03:10:07 +01:00
shortcutme cf7d194dbf
Remove missing optional files from content.json on cloning 2018-11-07 22:48:35 +01:00
shortcutme 39d442a05d
Fix getConnectablePeers for low peer sites 2018-10-20 02:26:29 +02:00
shortcutme 6b2f619096
Fix updateHashfield optional file detection 2018-10-15 12:59:28 +02:00
shortcutme 6fc66b7b13
Move file forgot to separate function 2018-09-17 15:27:29 +02:00
shortcutme 9658c2d553
Stop downloadcontent pool if reached 95% of site limit 2018-09-17 15:27:11 +02:00
shortcutme 577761a6bb
Add cache to default settings 2018-09-17 15:25:17 +02:00
shortcutme b84abea670
Order more peers for connected peers simply by reputation 2018-09-02 02:23:46 +02:00
shortcutme a5fcc7d65f
Sort recent peers by reputation 2018-09-02 02:23:19 +02:00
shortcutme 313d9a4ef9
Need less peer sites with less peers 2018-09-02 02:23:06 +02:00
shortcutme 6edabeeecc
Log hashfield query time 2018-08-29 19:55:50 +02:00
shortcutme 8b91abd0dc
Use FileServer to avoid plugin incompatiblity problems 2018-06-21 21:57:06 +02:00
shortcutme d125551c0d
Proritize currently requested site update 2018-06-03 12:46:00 +02:00
shortcutme f3b17d4896
Force reannounce if announce is enabled on update 2018-04-29 14:52:56 +02:00
shortcutme cafb9ddcf4
No need to announce if no peer as checkModifications will do 2018-04-29 02:45:10 +02:00
shortcutme 2f71c2b784
Refactor and move announcer code to separate class 2018-04-28 21:48:21 +02:00
shortcutme f3a809a495
Fix publish logging message 2018-04-28 21:47:43 +02:00
shortcutme ad955b157b
My port and ip is no longer necessary for updates 2018-04-28 21:47:33 +02:00
shortcutme a87b6c7022
Announce on update if no peers 2018-04-28 21:47:11 +02:00
shortcutme 5104d0d250
Always have connectionserver for site 2018-04-28 21:46:50 +02:00
shortcutme c5f77a1c38
Handle global onion address correctly in needConnections 2018-03-14 22:31:58 +01:00
shortcutme 2575476086
Some trackers does not accept port 0, so we send port 1 as not-connectable 2018-02-10 01:08:31 +01:00
shortcutme 211d68f590
Only parse dict result from udp tracker 2018-02-10 01:08:20 +01:00
shortcutme 3e51b888cb
Add left bytes to request to improve tracker compatibility 2018-02-10 01:04:23 +01:00
shortcutme ff8f41c1eb
Request less peers in update mode 2018-02-10 01:03:49 +01:00
shortcutme a6e67fa9c3
Generalized tracker result log format for pex 2018-02-08 18:06:45 +01:00
shortcutme 64b4789bc1
Generalize tracker logging 2018-02-08 17:54:09 +01:00
shortcutme 13e651c822
Store and prefer recent peers from trackers and local peer discovery 2018-02-08 17:53:17 +01:00
shortcutme 7d3fd6f5b6
Only add recent peers if there is more 2018-02-08 17:51:44 +01:00
shortcutme 0c91fd396e
De-duplicate peers before publishing 2018-02-08 17:51:10 +01:00
shortcutme 1827e1e033
Force announce on startup 2018-02-08 17:50:40 +01:00
shortcutme 771dce4c8c
Pre-generate site address hash 2018-02-08 17:50:23 +01:00
shortcutme c2edbb30b5
Don't send private ip addresses on pex 2018-01-30 13:58:01 +01:00
shortcutme ea1cd63929
Log hashfield change time on send 2018-01-19 02:30:52 +01:00
shortcutme c8ac4c0278
Update content update time after successful listmodifications 2018-01-19 02:29:18 +01:00
shortcutme 49a332724e
No connected peers if no connection server 2018-01-19 02:27:40 +01:00
shortcutme a21c417c0b
Better announce logging 2018-01-19 02:27:19 +01:00
shortcutme 7ee5cbe473
Rev3175, Make getConnectablePeers return not-connected peers by default 2017-12-19 16:14:13 +01:00
shortcutme b5452bce6b
Rev3171, Allow 127.0.0.1 peers for testing reasons 2017-12-15 12:28:48 +01:00