Commit graph

1330 commits

Author SHA1 Message Date
shortcutme
e048fa6c6a
Target 6 connections per site 2017-10-21 11:02:40 +02:00
shortcutme
940d583f9a
Fix site violation bug when using Tor 2017-10-21 11:02:27 +02:00
shortcutme
ed965041e6
Report progress on GeoLite2 download 2017-10-21 11:01:57 +02:00
shortcutme
d50603f722
Rev3114, Add details to permission requests 2017-10-17 17:02:56 +02:00
shortcutme
4efcfa8bf4
Rev3112, Allow user rules based on auth address 2017-10-16 20:26:41 +02:00
shortcutme
9551d11f5c
Rev3110 version update 2017-10-16 15:13:02 +02:00
shortcutme
b40ef09108
Rev3110 2017-10-16 15:12:34 +02:00
shortcutme
75cf8bbb0a
Change arument order of siteSign API call 2017-10-16 15:11:43 +02:00
shortcutme
c40f0c6919
Fix uploading bigfile to non-user directory 2017-10-16 15:11:19 +02:00
shortcutme
807dc866e5
Rev3106, Cancel other part downloads when delete optional file 2017-10-16 01:43:51 +02:00
shortcutme
3f52f78af2
Rev3105, Change tracker domain due GFW banned zeronet.io domain 2017-10-14 12:51:31 +02:00
shortcutme
a66b71fb9c
Rev3104, Fix bigfile signing via command line 2017-10-13 11:27:45 +02:00
shortcutme
65eff6b6d9
Rev3102 2017-10-13 01:23:43 +02:00
shortcutme
027ee83c6f
Wait 0.1s for new tasks before shut down worker 2017-10-13 01:23:26 +02:00
shortcutme
60af54a17e
Start find optional files if no peers to try 2017-10-13 01:23:09 +02:00
shortcutme
19c335e39a
Fix bytes sent stats 2017-10-13 01:22:16 +02:00
shortcutme
d32303de57
Increase buffer size for file streaming 2017-10-13 01:21:45 +02:00
shortcutme
de360a8585
Received and sent connection command statistics 2017-10-13 01:21:05 +02:00
shortcutme
24c1596048
Keep track last received command for connection 2017-10-13 01:19:34 +02:00
shortcutme
4a75d9d4f5
Rev3099 2017-10-11 14:30:12 +02:00
shortcutme
68ea4d02cb
Don't reset bad file counter after restart, but limit to 20 2017-10-11 14:29:54 +02:00
shortcutme
8b3ff6454f
Limit connections to 500, backlog to 100 2017-10-11 14:22:23 +02:00
shortcutme
de28643e20
Rev3098 2017-10-10 14:58:52 +02:00
Filip Š
136a0fbe28 Add Slovenian translate. 2017-10-07 20:16:20 +02:00
shortcutme
7905e12fc3
Rev3097, Add peer info for bigfiles even if it's not downloaded 2017-10-06 00:42:19 +02:00
shortcutme
07caaa6b48
Fix removed is_pinned flag on content.json update 2017-10-05 19:24:39 +02:00
shortcutme
0e85beec30
Rev3094 2017-10-04 17:27:08 +02:00
shortcutme
f1276beb97
Bump prority for non-user json files 2017-10-04 17:27:01 +02:00
shortcutme
365ba9b5f4
Force start peers for optional files 2017-10-04 17:26:43 +02:00
shortcutme
f997a69ebc
Run checkTask for every task 2017-10-04 17:26:21 +02:00
shortcutme
e2b6dd37b7
Only announce once per checkTask loop 2017-10-04 17:25:56 +02:00
shortcutme
bc9bddf918
Make sure the hashfield response is correct 2017-10-04 17:25:33 +02:00
shortcutme
e4fc4ca410
Version 0.6.0, Rev3091 2017-10-04 13:36:29 +02:00
shortcutme
0b9bc56959
Test sub-directory files in user diretories 2017-10-04 13:36:14 +02:00
shortcutme
e9beeb85fc
Use with to open files to avoid keeping them open in case of errors 2017-10-04 13:35:55 +02:00
shortcutme
a71e82c315
Test user sub-directories inner_path 2017-10-04 13:35:15 +02:00
shortcutme
d176150248
Test multiple length of message for signing 2017-10-04 13:34:50 +02:00
shortcutme
ab9fa9ec0c
Mark data/optional.* as optional for test site 2017-10-04 13:34:14 +02:00
shortcutme
3d57fbb1b8
Use the real size of content.json instead of predefine it 2017-10-04 13:33:26 +02:00
shortcutme
f0f9240fc8
getDirname strips the leading / chars 2017-10-04 13:33:00 +02:00
shortcutme
b1bfe39cd5
Use merged getFile function call to download file using streaming 2017-10-04 13:32:39 +02:00
shortcutme
c82b19687a
Spy object also stores the called object 2017-10-04 13:31:49 +02:00
shortcutme
be755fe25e
Custom logging for tests to spot possible performance bottlenecks easier 2017-10-04 13:30:17 +02:00
shortcutme
8e2be5cfe2
Add Merkletools package for bigfile plugin 2017-10-04 13:29:32 +02:00
shortcutme
f7ce401564
Function to remove invalid characters from file path 2017-10-04 13:25:07 +02:00
shortcutme
5dbaf02e33
Add content.json location to getFileInfo 2017-10-04 13:24:44 +02:00
shortcutme
2ef537ee6c
Fox user_address detection for sub-directories in user directory 2017-10-04 13:24:22 +02:00
shortcutme
74048ce53f
Update site size on startup and file archival 2017-10-04 13:20:39 +02:00
shortcutme
96ceb253e8
GetTotal size also return optional sum of optional file sizes 2017-10-04 13:19:19 +02:00
shortcutme
6e55c8b7c7
Allow ranged SQL queries 2017-10-04 13:10:41 +02:00
shortcutme
38c663ee95
Use WHERE 1 for queries without argument 2017-10-04 13:10:26 +02:00
shortcutme
ca473d6c3b
Allow plugins on ContentManager 2017-10-04 12:51:37 +02:00
shortcutme
36b74e1c6a
ContentManager logging improvements 2017-10-04 12:51:24 +02:00
shortcutme
8e3e96fe65
Create storage object after site settings loaded 2017-10-04 12:50:24 +02:00
shortcutme
0f0f3894ff
request from directory . should drop forbidden error 2017-10-04 12:48:48 +02:00
shortcutme
a2182e8a8d
Invalid nonce requests automatically shows wrapper now 2017-10-04 12:48:16 +02:00
shortcutme
4042de460e
actionFile allows file details to be passed as parameter 2017-10-04 12:46:06 +02:00
shortcutme
0dd34403a2
Combinate isfile and filesize query to one function 2017-10-04 12:44:34 +02:00
shortcutme
edb9d3f719
Media files requested from non-seeded site not wokring anymore 2017-10-04 12:42:05 +02:00
shortcutme
1f5db0aa24
Nonce checking moved to route command 2017-10-04 12:41:14 +02:00
shortcutme
74b2408668
Move path checking to parsePath 2017-10-04 12:39:08 +02:00
shortcutme
f53612bef7
Media request should start with normal characters 2017-10-04 12:38:44 +02:00
shortcutme
4d991cda6d
Also serve htm files with wrapper 2017-10-04 12:37:56 +02:00
shortcutme
6984575901
Remove dead reload code 2017-10-04 12:37:34 +02:00
shortcutme
75b44f6980
Raise SecurityError on invalid path 2017-10-04 12:37:22 +02:00
shortcutme
3c46f60042
Show wrapper automatically if wrapper nonce is invalid 2017-10-04 12:35:15 +02:00
shortcutme
7dbc323f76
ZeroNet-internal virtual path on UiServer for internal commands 2017-10-04 12:33:43 +02:00
shortcutme
903b62ba7c
Make fileNeed API command async 2017-10-04 12:32:40 +02:00
shortcutme
53da40fe5d
Allow to show site directory in local file browser 2017-10-04 12:31:57 +02:00
shortcutme
d0f85f3d04
String / from left during dirname conversion 2017-10-03 16:05:01 +02:00
shortcutme
49d863fa54
Reduce indent by using continue instead of if 2017-10-03 16:04:03 +02:00
shortcutme
6fe5e2b751
Speed up task competition by wait 10*0.1 sec for task finish instead of 1x1sec before start wokring on it 2017-10-03 16:02:49 +02:00
shortcutme
59d45f445a
Always start findOptional if no worker running but there is tasks 2017-10-03 16:01:02 +02:00
shortcutme
09d19da3bc
Always update hashfield for peer during findHash 2017-10-03 15:58:51 +02:00
shortcutme
1036d0e4a0
Allow second peer for same task only if priority is above 10 2017-10-03 15:58:01 +02:00
shortcutme
8ba4201237
More agressive optional file finding 2017-10-03 15:56:58 +02:00
shortcutme
7c69118c2c
Move peer adding to separate function 2017-10-03 15:55:42 +02:00
shortcutme
6238bb7f2d
Multiplexing support for peers (disabled by default) 2017-10-03 15:55:07 +02:00
shortcutme
42ea01dde9
No extra time for larger files task timeout 2017-10-03 15:53:59 +02:00
shortcutme
c0b8e802ec
Fix findhash initial delay 2017-10-03 15:53:00 +02:00
shortcutme
43bd8a2d6c
Stop findhash if all task finished during the findhash call 2017-10-03 15:52:37 +02:00
shortcutme
e85efe2c64
Restart find optional files algorithm if new task started since running the function 2017-10-03 15:52:04 +02:00
shortcutme
988d169687
Fix asked_peers ignore for optional files 2017-10-03 15:51:17 +02:00
shortcutme
43e6f374fa
Don't increase priority when addTask called again 2017-10-03 15:49:52 +02:00
shortcutme
c91011e6ea
Pass file info for addTask call 2017-10-03 15:49:08 +02:00
shortcutme
f45c0b2377
Log time taken for optonal file download 2017-10-03 15:48:36 +02:00
shortcutme
9b8eeb6a73
WorkerManager addTask returns task instead of event 2017-10-03 15:47:46 +02:00
shortcutme
468fe8f266
Move json formatting to separate function 2017-10-03 15:30:10 +02:00
shortcutme
5ccdfbd40a
Update site optional size on save 2017-10-03 15:29:52 +02:00
shortcutme
ad969dcca7
Move file download allowed checking to separate function 2017-10-03 15:29:26 +02:00
shortcutme
08b31416f3
Move needFileInfo to separate function 2017-10-03 15:28:37 +02:00
shortcutme
c494b01435
Update hashfiled more often 2017-10-03 15:26:53 +02:00
shortcutme
c0e69e91a1
Always use streamFile for files bigger than 512k, increase file reads to 1MB for larger files 2017-10-03 15:26:39 +02:00
shortcutme
1c029981ae
Raise exception when no response received 2017-10-03 15:23:25 +02:00
shortcutme
f9e64bc874
Log inner_path and location for peer request in verbose mode 2017-10-03 15:23:03 +02:00
shortcutme
8d26a572dd
Hashlib-like truncated sha512/256 object 2017-10-03 15:22:05 +02:00
shortcutme
936371a7ec
Support digest output for sha512sum 2017-10-03 15:20:50 +02: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
7153982981
Allow to register callback after the pluginned classes got generated 2017-10-03 14:57:44 +02:00
shortcutme
fcfd428b54
Enable plugins for Peer class 2017-10-03 14:56:42 +02:00
shortcutme
20e3dc5fa7
Only enable source code reloading for normal action 2017-10-03 14:55:28 +02:00
shortcutme
32ca6ac1a7
Move site cache generation to separate function to allow plugins to extend it 2017-10-03 14:40:13 +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
shortcutme
52a468d9fd
Allow 10 second for reponse 2017-10-03 14:34:21 +02:00
shortcutme
2cf86642a2
Run connection cleanup every 15 seconds 2017-10-03 14:32:31 +02:00
shortcutme
e76164c7a9
Change the posistion of handleStream function 2017-10-03 14:32:02 +02:00
shortcutme
bf0d359116
Increase buffer size to 64k to better performance for big files 2017-10-03 14:31:39 +02:00
shortcutme
5f37bf3eef
Enable TCP_NODELAY if supported 2017-10-03 14:31:16 +02:00
shortcutme
d8453384ab
Separate socket creation and connection to be able to cancel it 2017-10-03 14:30:19 +02:00
shortcutme
f4cdc31788
Lock socket during sending data 2017-10-03 14:27:29 +02:00
Ivanq
f8f26f0a89 Return log_dir, data_dir, src_dir as result of getConfig 2017-09-25 19:10:17 +03:00
Ivanq
522e9ebf39 Show config via getConfig console command 2017-09-25 19:09:59 +03:00
ZeroNet
27a9ea78b8 Merge pull request #1122 from imachug/siteclone
Allow siteClone for non-admin sites
2017-09-22 11:01:43 +02:00
Ivanq
7fa019321c Check site before cloning 2017-09-22 08:28:39 +03:00
Ivanq
f98f52a50e Allow siteClone not for admin sites 2017-09-22 08:24:18 +03:00
ZeroNet
bc71555a73 Merge pull request #1070 from anoadragon453/small_gram_fix
Small English grammer fixes
2017-09-21 13:46:11 +02:00
shortcutme
d3d7489232
Rev2192, Fix incorrect site detection when using async commands with Cors or MergerSite plugin 2017-09-20 17:06:09 +02:00
Ivanq
db339eecd3 Allow 'backup' or 'log' as directories 2017-09-16 21:57:20 +03:00
ZeroNet
53cd2cdbf3 Merge pull request #1114 from imachug/binary
Read files as binary in fileGet()
2017-09-10 09:28:45 +02:00
Ivanq
4bbea46b90 Read files as binary in fileGet() 2017-09-10 09:46:21 +03:00
shortcutme
932db9bbe4
Rev2190 2017-09-02 14:28:40 +02:00
shortcutme
bfd3d18a10
Fix multiuser plugin compatibility 2017-09-02 14:28:01 +02:00
shortcutme
b584c586ec
Fix longer signers_sign signing 2017-09-02 14:26:39 +02:00
grez911
158f9e37e5 Added explanation of convertion actionWrapper response to list 2017-08-25 11:05:48 +03:00
grez911
905976a1b6 Added exception handling for broken user.json 2017-08-22 17:43:55 +03:00
shortcutme
5ad614743b
Rev2187 2017-08-19 18:55:48 +02:00
ZeroNet
d44f08382a Merge pull request #1076 from grez911/master
Added P2P portcheck
2017-08-18 14:47:38 +02:00
shortcutme
5e926ec98e
Rev2186 2017-08-18 14:47:08 +02:00
shortcutme
9f762a0230
Bootstrapper use python date functions instead of sqlite 2017-08-18 14:43:28 +02:00
shortcutme
f1c320dd22
Log sign errors 2017-08-18 14:38:58 +02:00
shortcutme
4c7500e248
Fix getDirname description 2017-08-18 14:37:56 +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
1db2327b3d
Rev2180, Allow ajax requests using ajax_key http get parameter 2017-08-15 02:40:38 +02:00
shortcutme
0a380dc0ab
Rev2180 2017-08-09 14:22:17 +02:00
shortcutme
29aa1b7b93
Log file diffing timings 2017-08-09 14:21:59 +02:00
shortcutme
5a08545e2d
Only recalculate site sizes on exit 2017-08-09 14:21:44 +02:00
shortcutme
65d68fb8ac
Compile Ui js 2017-08-09 14:21:09 +02:00
shortcutme
d093764731
New API command: fileNeed to request optional file 2017-08-09 14:20:49 +02:00
shortcutme
24982aee42
Log invalid wrapper messages 2017-08-09 14:20:20 +02:00
shortcutme
ef4a4acbc0
Only display read error in verbose mode 2017-08-09 14:19:56 +02:00
shortcutme
b503d59c49
Support gzip compressed database files 2017-08-09 14:19:39 +02:00