Commit graph

137 commits

Author SHA1 Message Date
Vadim Ushakov
545fe9442c Merge branch 'HelloZeroNet-py3' into massive-rework
# Conflicts:
#	src/File/FileServer.py
2021-11-06 22:39:47 +07:00
Vadim Ushakov
e000eae046 Add new configuration option: simultaneous_connection_throttle_threshold 2021-11-03 16:06:06 +07:00
Vadim Ushakov
d32d9f781b Move getIpType() from helper to ConnectionServer 2021-11-03 12:57:13 +07:00
Vadim Ushakov
f484c0a1b8 fine-tuning FileServer 2021-10-26 17:40:03 +07:00
Vadim Ushakov
dff52d691a Small improvements in FileServer 2021-10-25 17:09:16 +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
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
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
c36cba7980 Implement new websocket command serverSetPassiveMode 2021-10-21 18:45:08 +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
75bba6ca1a Be more verbose about starting/stopping FileServer threads 2021-10-20 22:40:34 +07:00
Tamas Kocsis
38a3ea6373 Rev4551, Keep uiserver running if fileserver bind failed 2020-11-26 02:01:41 +01: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