Commit graph

1667 commits

Author SHA1 Message Date
shortcutme
282f06b65e
Filter for OptionalFileList API call that allows to list non-downloaded files and only bigfiles 2017-10-04 13:15:44 +02:00
shortcutme
e8a439cad3
Mark my optional files using directory on signing instead of file path 2017-10-04 13:14:24 +02:00
shortcutme
cd025316db
Auto-pin downloaded bigger files 2017-10-04 13:13:00 +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