Commit graph

125 commits

Author SHA1 Message Date
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
75bba6ca1a Be more verbose about starting/stopping FileServer threads 2021-10-20 22:40:34 +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
c84b413f58 Refactor ConnectionServer, FileServer; fix bugs introduced in previous commits 2020-11-03 21:21:33 +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
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
3ca323f8b0 FileServer: move loadTrackersFile() to a separate thread 2020-10-28 17:56:11 +07:00
Tamas Kocsis
85790f8866 Check sites on ip change 2020-09-21 18:20:49 +02:00
Tamas Kocsis
fde3b51129 Formatting 2020-09-18 18:44:42 +02:00
Tamas Kocsis
550d02d473 Retry site update if it was failed last time 2020-09-18 18:44:28 +02:00
shortcutme
ddbd5c7b19
Fix reset file server port with config web interface 2020-06-30 17:04:09 +02:00
shortcutme
c14e722303
Fix bug that someomes blocked plugins accessing connectionserver sitelist 2019-11-25 14:34:46 +01:00
shortcutme
d7db631b95
Shut down UiServer if FileServer startup failed 2019-09-19 16:33:45 +02:00
shortcutme
7d1ca3862d
Make missing IPv6 a warning not an error 2019-08-18 03:02:30 +02:00
shortcutme
879b522914
Disable portcheck in offline mode 2019-04-15 15:16:38 +02:00
shortcutme
998ec3eb4f
Disable all site serving using a global offline argument 2019-04-15 15:06:25 +02:00
shortcutme
e92f3ea100
New watchdog module based file change watching 2019-03-16 02:42:43 +01:00
shortcutme
b0b9a4d33c
Change to Python3 coding style 2019-03-15 21:06:59 +01:00
shortcutme
46fb61c68c
Consider port opened if we have external ip on the interface 2019-01-30 14:58:11 +01:00
shortcutme
ef6f9b9d70
Don't try to open ports in Tor mode 2019-01-30 14:52:41 +01:00
shortcutme
9f701c8f35
IPv6 supported in tor mode 2019-01-30 14:52:26 +01:00
shortcutme
4631f2223b
Add public ips from local adapters to external ip list 2019-01-29 02:59:15 +01:00
shortcutme
f706f7508e
Store detected external ips to separate variable 2019-01-26 20:42:27 +01:00
shortcutme
de41efbaf8
Rev3818, Fix peerPing cli command 2019-01-26 03:13:47 +01:00
shortcutme
6460b7b0a1
Parse ip_external on portCheck function call 2019-01-25 01:23:46 +01:00
shortcutme
fdb06ad973
Cleaner way to record external ips from port checkers 2019-01-24 15:20:37 +01:00
shortcutme
37979b4f9c
Support multiple external ips 2019-01-24 15:20:08 +01:00
shortcutme
4d60c61512
Rev3808, Use cjdns compatible ipv6 address to test route 2019-01-23 14:21:25 +01:00
shortcutme
1824363f86
Support dual stack listening 2019-01-23 02:13:13 +01:00
shortcutme
439d2bcf7f
Remove unused setIpExternal funtcion 2019-01-23 02:11:59 +01:00
shortcutme
447f5fd5c8
Store opened port status per IP version 2019-01-23 02:11:31 +01:00
shortcutme
c7a468eb14
Bind file server to ipv6 interfaces according to fileserver_ip_type config value 2019-01-20 03:15:21 +01:00
shortcutme
1c5b5e3621
Move port checking to separate file, add ipv6 port check 2019-01-20 03:13:54 +01:00
shortcutme
035d70cf57
Spawn site announce to new async line 2018-10-30 04:44:43 +01:00
shortcutme
8c76e258d7
Give 10 second timeout for reannounce 2018-10-30 04:43:58 +01:00
shortcutme
b96559b76f
Reduce connection requirements on startup 2018-08-29 19:55:04 +02:00
shortcutme
3a9ded9315
On startup don't run more than 5 checkSite at the same time 2018-08-29 19:54:31 +02:00
shortcutme
7738e6a381
Fix tracker annonce sleeping formatting 2018-08-26 02:53:15 +02:00
shortcutme
7e8a93e974
Load trackers files in announceSites loop 2018-07-10 03:32:37 +02:00
shortcutme
8b09a02028
Start ConnectinServer before loading site list 2018-04-29 13:04:38 +02:00
shortcutme
3f6b8def05
Move ConnectionServer listen to separate function to allow TorManager start before connections 2018-04-29 02:44:46 +02:00
shortcutme
c0101933bd
Call pex announce from announcer class 2018-04-28 21:54:03 +02:00
shortcutme
d4a1764d20
Rev3408, Use fixed 15441 port in tor always mode 2018-04-06 18:18:10 +02:00
shortcutme
852aaae52e
Randomize fileserver port 2018-04-03 14:45:04 +02:00