Commit graph

211 commits

Author SHA1 Message Date
shortcutme
0f567385a8
Only check size on file request for smaller files 2018-07-16 01:35:35 +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
82e6bc5d31
Use websocket connection instead of fileserver to execute commands from CLI 2018-04-03 14:49:40 +02:00
shortcutme
852aaae52e
Randomize fileserver port 2018-04-03 14:45:04 +02:00
shortcutme
3561ddf7d3
Do check needConnection for evey site after startup to have up to date protected ip list 2018-03-14 22:31:21 +01:00
shortcutme
81e96d25ba
Handle request using global onion address 2018-03-14 22:30:08 +01:00
shortcutme
514f8396b7
Add missing import for port checking 2018-02-12 17:05:20 +01:00
shortcutme
39568737dd
Tor connect error and uPnP punch error are not critical 2018-02-10 15:33:54 +01:00
shortcutme
ae0a78dfb1
Message from local peer does not means internet connection 2018-02-08 18:12:08 +01:00
shortcutme
1ad021ffa9
Fix comment formatting 2018-02-08 18:11:56 +01:00
shortcutme
ee6ab8e82a
Store site manager to file server 2018-02-08 18:11:45 +01:00
shortcutme
b56c985a63
FileServer accept plugins 2018-02-08 18:09:57 +01:00
shortcutme
a265c2a7ca
Pass peer discovery source to addPeer 2018-02-08 17:57:26 +01:00
shortcutme
97d1d0d63b
Fix cleanup sites with no modified date 2018-01-30 13:59:59 +01:00
shortcutme
c2edbb30b5
Don't send private ip addresses on pex 2018-01-30 13:58:01 +01:00
shortcutme
d44677e46f
Don't keep connections for sites that not modified in last week 2018-01-27 12:21:25 +01:00
Ivanq
5d7b8cfd48 Return dict object, not single None value 2018-01-14 09:38:55 +03:00
Ivanq
6318c0889a Don't check error message for 'open' when checking port 2018-01-14 09:35:03 +03:00
shortcutme
a2da8eca68
Master startup by waiting less between site update checks 2017-11-19 18:18:26 +01:00
shortcutme
620d8caea9
Always use peer's real ip instead of reported one using update parameter 2017-11-19 18:18:08 +01:00
shortcutme
4465146615
Update server_info on port open status change 2017-11-05 23:43:51 +01:00
shortcutme
628cc992e9
Don't send ok result when update is queued 2017-10-03 15:19:34 +02:00
shortcutme
636813c603
Reduce connection cpu usage by socket send time 2017-10-03 15:19:09 +02:00
shortcutme
2eb6cc8f55
Don't add myself to findhash result if ip detection failed 2017-10-03 15:07:26 +02:00
shortcutme
8ae9b5261e
Unify handling Stream and Get file requests 2017-10-03 15:03:56 +02:00
shortcutme
02ad7542b3
Temporary disable P2P port checking until more client start supporting it 2017-10-03 14:39:04 +02:00
shortcutme
57c042ef79
Use recent peers for P2P port checking 2017-10-03 14:38:33 +02:00
grez911
8487056edb Small fix in P2P portcheck 2017-08-18 11:43:06 +03:00
grez911
bf69d24566 Deleted unnecessary import statement 2017-08-18 11:38:26 +03:00
grez911
1fc2a917d4 Fix P2P port check 2017-08-18 11:29:41 +03:00
Sergei Bondarenko
c0a96983a7 Update FileServer.py 2017-08-16 14:32:47 +03:00
Sergei Bondarenko
a4132c9cb1 Update FileServer.py 2017-08-16 09:40:54 +03:00
grez911
5c5e4b914c Added P2P portcheck 2017-08-15 20:17:42 +03:00
shortcutme
ef4a4acbc0
Only display read error in verbose mode 2017-08-09 14:19:56 +02:00
shortcutme
eee073c103
Publish incoming updates to more peers 2017-07-27 16:30:21 +02:00
shortcutme
f08f354eb6
More detailed file size match error logging 2017-06-20 11:20:43 +02:00
shortcutme
23db93d20f
Fix invalid update logging 2017-06-20 11:20:30 +02:00
shortcutme
f773bf3336
Add file_size to request to avoid unnecessary download 2017-06-19 16:10:18 +02:00
shortcutme
9a9bd71634
Catch file verification errors on update request 2017-06-19 16:07:36 +02:00
shortcutme
25657ebdca
Log to site instead of fileserver 2017-06-19 16:04:17 +02:00
shortcutme
c7146613a1
Store inner path to variable on update request to save some complexity 2017-06-19 16:02:52 +02:00
shortcutme
c58d28861d
Raise RequestError instead of Exception of fileGet error 2017-06-19 16:01:41 +02:00
shortcutme
a4a23f3ea0
Fix site lock violation logging 2017-06-13 14:12:13 +02:00
shortcutme
de363b57ce
Rev2091, Port opening error should not prevent ZeroNet startup 2017-05-26 12:22:35 +02:00
shortcutme
89bb12de71
Search for success message instead of error when portchecking 2017-05-24 10:28:59 +02:00
shortcutme
ed11ae283f
Use https for portchecker.co 2017-05-24 10:27:02 +02:00
shortcutme
438bdbc141
Protect peers for low traffic sites from closing 2017-05-07 18:15:23 +02:00
shortcutme
14c906561d
Rev2048, Stop sending detailed exception as response to file request 2017-04-14 00:26:20 +02:00
shortcutme
25bb14037c
Better site lock violation logging 2017-04-10 12:18:21 +02:00
shortcutme
7bda72027a
Site lock validation based on target_onion 2017-04-09 12:03:25 +02:00
shortcutme
50937990e5
Fix typos 2017-03-06 15:30:31 +01:00
shortcutme
ebd00bfb9f
Separate site cleanup and announce thread 2017-02-27 00:07:29 +01:00
shortcutme
353ddd3105
Sync site checking for not so active sites 2017-02-27 00:06:40 +01:00
shortcutme
bad2a79f05
Reason for connection closing 2017-02-27 00:02:24 +01:00
shortcutme
d57d82f439
Rev1913, Support local address other than 127.0.0.1 2017-02-16 20:56:07 +01:00
shortcutme
4ec0209dd7
Invalid request detect 2017-02-09 01:54:24 +01:00
shortcutme
277d16eabb
Bad action increment on invalid file update request 2017-02-09 01:54:04 +01:00
shortcutme
4988d31aff
Rev1859, Update more active sites first 2017-02-05 18:36:58 +01:00
shortcutme
ee0176e730 Increase connection bad action on bad file location 2017-01-05 02:25:06 +01:00
shortcutme
bd51c61eb6 Findhashfield optimization and limit 2016-11-07 23:20:08 +01:00
shortcutme
9fcd456205 Return file send stats 2016-11-07 23:19:33 +01:00
shortcutme
c727443ea3 Log connection cpu time usage for non io heavy commands 2016-11-07 23:19:17 +01:00
shortcutme
efbd485f5f Update more hashfield on site check 2016-11-07 22:37:31 +01:00
shortcutme
3ba2ecedce Only try to close upnp opened port if necessary 2016-11-07 22:36:14 +01:00
shortcutme
c9efcf7389 Catch socket errors on uPnP punch 2016-10-03 19:26:37 +02:00
shortcutme
1849547133 Rev1533, Add uPnP open protocols as parameter 2016-10-02 14:39:03 +02:00
shortcutme
31077eb346 Move uPnP port remove to fileserver 2016-10-02 14:22:01 +02:00
sirMackk
bd5ebdb2de Integrates updated upnppunch with project; Makes project close ports using UPnP on exit. 2016-09-09 12:37:22 +02:00
shortcutme
cb20280530 Less verbose logging on filerequest 2016-09-05 13:54:17 +02:00
shortcutme
6806eed2ae Dont reload the whole site on content.json update 2016-09-05 13:54:03 +02:00
shortcutme
a12c639bed Dont check files on startup 2016-09-04 17:51:00 +02:00
shortcutme
d6cc40cf3b List modified files using content.db 2016-09-04 17:50:29 +02:00
shortcutme
1557d3c390 Always keep connections for the sites 2016-08-26 11:41:45 +02:00
shortcutme
3524198599 Don't log owned local file reload 2016-08-16 19:56:35 +02:00
shortcutme
16ed55a745 Dont recalculate site size on owned site update 2016-08-15 13:55:45 +02:00
shortcutme
64febc7f61 Publish incoming modifications only to 2 peers 2016-08-15 13:54:00 +02:00
shortcutme
4975ef82d7 Fix port open checking 2016-08-15 13:53:20 +02:00
HelloZeroNet
432aa037cb Rev1276, Skip last_content_json_update while pending file parsing 2016-04-27 09:45:32 +02:00
HelloZeroNet
75a5ab9441 Track used site per connection 2016-04-25 02:23:06 +02:00
HelloZeroNet
21cfa653ca Mark files updates currently working on to avoid double update on slow systems 2016-04-20 23:38:22 +02:00
HelloZeroNet
c7b8ec5667 Allow only content.json update 2016-04-20 23:35:51 +02:00
HelloZeroNet
82b960c641 Pass diffs to other users 2016-04-06 13:59:53 +02:00
HelloZeroNet
7c3e470ea7 Calculate and send diff on startup commands 2016-04-06 13:58:43 +02:00
Fil
7a4472db4c typo: "time wrap" should be "time warp" 2016-04-03 10:32:13 +02:00
HelloZeroNet
17ddbd8b32 Only start onions in passive mode 2016-03-30 23:19:46 +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
646eba930f Change update spam rate limit to 20 secs 2016-03-30 23:01:05 +02:00
HelloZeroNet
33430ee67b Force find more peer for optional task after 15sec 2016-03-23 13:05:48 +01:00
Erkan Yilmaz
b5d74eec16 typo: definied -> defined 2016-03-21 09:43:53 +01:00
HelloZeroNet
f3c8d5e541 Better internet outage detection based on last message from connections 2016-03-19 18:14:09 +01:00
HelloZeroNet
231578b887 Internet outage detection to fixed 5 min 2016-03-19 12:23:52 +01:00
HelloZeroNet
09b3d6ffca More clean force port checking 2016-03-19 12:23:29 +01:00
HelloZeroNet
bdd658dddb Internet outage detection 2016-03-19 01:36:01 +01:00
HelloZeroNet
50708c16de Dont allow checkSites run in parallel 2016-03-18 20:03:38 +01:00
HelloZeroNet
f27e58395b Dont check site files on wakeup 2016-03-18 20:03:19 +01:00
HelloZeroNet
77ac1ae796 Keep connections opened regardless prot opened status 2016-03-16 23:24:57 +01:00