Commit graph

643 commits

Author SHA1 Message Date
shortcutme
cc504e93f6 Change contentdb calls to site object 2016-11-07 23:43:42 +01:00
shortcutme
4890c4cb2f Fix big site download 2016-11-07 23:43:08 +01:00
shortcutme
73b3c8db55 Use site object on delete from contentdb 2016-11-07 23:42:28 +01:00
shortcutme
713a2f88a9 Query and send more hashfield 2016-11-07 23:42:13 +01:00
shortcutme
30a2116abf Only announce if trackers 2016-11-07 23:42:00 +01:00
shortcutme
6acc81cb50 Retry bad files in separate thread 2016-11-07 23:41:25 +01:00
shortcutme
af571deb16 Peer cleanup ttl based on peer numbers 2016-11-07 23:40:04 +01:00
shortcutme
e6a82d4c64 Pooled file downloads to handle large ammount of files better 2016-11-07 23:39:45 +01:00
shortcutme
83b3dc8fbe Autodownload optional pattern check to separate function to allow plugins 2016-11-07 23:39:04 +01:00
shortcutme
d1ad7e0850 Stats for total optional files and downloaded optional files in a site 2016-11-07 23:36:04 +01:00
shortcutme
2048648b39 Reduce findoptional spam 2016-11-07 23:32:20 +01:00
shortcutme
a3d21f5377 Update if high priority and less than 10 peers for the file 2016-11-07 23:29:53 +01:00
shortcutme
62d092e5ac Update task ids during startFindOptional if new task added 2016-11-07 23:27:42 +01:00
shortcutme
d60785ee33 Ignore parameters for startFindOptional noparallel 2016-11-07 23:26:07 +01:00
shortcutme
fe19bd2fce Faster findOptionalTasks 2016-11-07 23:25:25 +01:00
shortcutme
7951763612 Faster findOptionalHashIds 2016-11-07 23:24:50 +01:00
shortcutme
5fafe7cf29 Change contentdb reference to site object in test 2016-11-07 23:20:52 +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
7ffd897653 Change contentdb after it modified in db 2016-11-07 23:17:41 +01:00
shortcutme
e7c9c2d192 Call ContentDb functions with site object 2016-11-07 23:16:22 +01:00
shortcutme
0b599a95e8 Only import supported cols 2016-11-07 23:15:09 +01:00
shortcutme
5893bbc199 Fix map command overwrite 2016-11-07 23:14:36 +01:00
shortcutme
7baeb8e10f Allow keyvalue table creation before json_id present 2016-11-07 23:14:09 +01:00
shortcutme
14f10d7d10 Open cursor if necessary 2016-11-07 23:13:05 +01:00
shortcutme
bdc8c7e5cc Formatting 2016-11-07 23:12:48 +01:00
shortcutme
f55a1f1bf3 Support delayed commands in Db 2016-11-07 23:11:14 +01:00
shortcutme
b7ede15b06 Print message before shutdown 2016-11-07 23:10:31 +01:00
shortcutme
d5d3f32bf8 Support traceback info formatting 2016-11-07 23:09:39 +01:00
shortcutme
0d9e3baebc Formatting 2016-11-07 23:09:06 +01:00
shortcutme
8955998d25 Support insertOrUpdate in database cursor 2016-11-07 23:08:57 +01:00
shortcutme
d595373f9f Use insertOrUpdate instead of replace on setcontent 2016-11-07 23:08:13 +01:00
shortcutme
12bf5bb152 Sote site in contentdb after files loaded 2016-11-07 23:02:37 +01:00
shortcutme
c35ffccf6c Change to schema based ContentDb to easier extension 2016-11-07 23:01:40 +01:00
shortcutme
0706748d10 Accept plugins to ContentDB 2016-11-07 23:00:59 +01:00
shortcutme
b3ba79a0fd Function to check if the user has permission to modife a site 2016-11-07 22:55:09 +01:00
shortcutme
81744c584e Merge wrapper js modifications 2016-11-07 22:53:07 +01:00
shortcutme
0774662689 Allow more connection backlog 2016-11-07 22:52:34 +01:00
shortcutme
6201612169 Store cpu time used by connection 2016-11-07 22:52:22 +01:00
shortcutme
fc239cfd0d Change tracker to more reliable one 2016-11-07 22:52:03 +01:00
shortcutme
7677b6859e Move config file modification to Config class 2016-11-07 22:51:43 +01:00
shortcutme
76af3a2e78 Gevent timer helper 2016-11-07 22:50:45 +01:00
shortcutme
38838b94a2 Formatting 2016-11-07 22:50:33 +01:00
shortcutme
5ff31e7cb4 Get free space on HDD function 2016-11-07 22:50:01 +01:00
shortcutme
ccb35f1353 Send content size header for normal files 2016-11-07 22:49:13 +01:00
shortcutme
a4a52e7ed4 Add websockets messages until its connected 2016-11-07 22:44:54 +01:00
shortcutme
0214741345 Hashfield test fix 2016-11-07 22:44:03 +01:00
shortcutme
d5b8722bb0 Kill greenlets between tests 2016-11-07 22:43:26 +01:00
shortcutme
c5851cd166 Better DB tests 2016-11-07 22:42:27 +01:00
shortcutme
0418a3e6de Only save sites.json if fully loaded to avoid data loss 2016-11-07 22:40:12 +01:00
shortcutme
8f3dfd7435 Fix site deletion errors on startup 2016-11-07 22:38:01 +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
cb214476e4 Keep plugin order after reload to allow plugins to extend other ones 2016-11-07 22:35:28 +01:00
shortcutme
91513f15ae Remove hash by id from hashfield 2016-11-07 22:35:05 +01:00
shortcutme
d39d6a2bd4 Mark if peer has hasfield 2016-11-07 22:34:46 +01:00
shortcutme
65d2b0d996 Still open browser if already running 2016-11-07 22:34:27 +01:00
shortcutme
484659fc3f Separate lock file instad of log file locking 2016-11-07 22:34:12 +01:00
shortcutme
64179e7dc1 Rev1536, Start download optional files on help check 2016-10-04 16:24:33 +02:00
shortcutme
b003c8df01 Rev1535, Fix err not defined on content load 2016-10-04 11:36:33 +02:00
shortcutme
83158de1ce Rev1534 2016-10-03 19:26:51 +02:00
shortcutme
c9efcf7389 Catch socket errors on uPnP punch 2016-10-03 19:26:37 +02:00
shortcutme
3774630476 Close socket after uPnP request 2016-10-03 19:26:06 +02:00
shortcutme
1849547133 Rev1533, Add uPnP open protocols as parameter 2016-10-02 14:39:03 +02:00
shortcutme
8f6f6abb0e Rev1532 2016-10-02 14:27:37 +02:00
shortcutme
fbdc9e2b40 Comment typo 2016-10-02 14:24:48 +02:00
shortcutme
bca08970ba Always disable announce when testing 2016-10-02 14:23:30 +02:00
shortcutme
d6da0c421c Better json compressing 2016-10-02 14:23:05 +02:00
shortcutme
bb23bc7b3c Send diff to second batch of peers 2016-10-02 14:22:32 +02:00
shortcutme
31077eb346 Move uPnP port remove to fileserver 2016-10-02 14:22:01 +02:00
shortcutme
2ab04deded Move optional files hashfield adding to workermanager for better performance 2016-10-02 14:18:35 +02:00
ZeroNet
906f6c65d9 Merge pull request #577 from sirMackk/upnp_update
Closes #466 - Close ports on exit + minor refactoring w/ tests
2016-10-01 13:24:48 +02:00
sirMackk
ea47c47b5e Makes opening a port stop after first successful try. 2016-09-29 15:24:46 +02:00
shortcutme
d760a71b76 Rev1529, Fix json write bug with [] characters in value 2016-09-29 13:01:02 +02:00
ZeroNet
6a58083431 Merge pull request #588 from dldx/master
Update UiRequest.py
2016-09-28 20:42:44 +02:00
shortcutme
a5a56355dc Rev1527 2016-09-28 20:40:10 +02:00
shortcutme
3331e2305b Fix sitePublish cli command 2016-09-28 20:36:02 +02:00
shortcutme
117a82c059 Delete bad_files without size 2016-09-28 20:35:53 +02:00
Durand D'souza
13837971a7 Update UiRequest.py
Fixed a bug where a lack of a trailing slash in every url caused zeronet to fail to load the page, even if it existed.
2016-09-20 05:23:34 +01:00
shortcutme
d608a0d847 Rev1525 2016-09-17 21:01:26 +02:00
shortcutme
67c9921ace Only add non-connected peers to publish if necessary 2016-09-17 21:01:16 +02:00
shortcutme
4690a111bf Push updates to newer clients first 2016-09-17 21:00:40 +02:00
shortcutme
65e5d05a9e Delete cleanup bad files without file info on update 2016-09-17 21:00:20 +02:00
shortcutme
fe59618eaf Rev1523, Real fix file write confirmation 2016-09-14 18:41:28 +02:00
shortcutme
60dd797d1a Rev1522, Fix file write confirmation dialog 2016-09-14 18:28:48 +02:00
shortcutme
e7762e03b4 Rev1521 2016-09-14 10:54:33 +02:00
shortcutme
a7de4aca91 Stop connection loop when closed 2016-09-14 10:54:08 +02:00
shortcutme
1c86a6c58a Close connection on crypt error 2016-09-14 10:53:47 +02:00
shortcutme
ca2a30f7ae Ignore not existent files on dbdict items 2016-09-14 10:53:24 +02:00
shortcutme
9fd19bf382 Fix content deletion 2016-09-14 10:52:41 +02:00
shortcutme
14544922bf Don't check files on siteUpdate 2016-09-14 10:51:10 +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
931426e4fc Rev1518 2016-09-09 12:24:27 +02:00
shortcutme
8241651a28 Add new tracker 2016-09-09 12:24:14 +02:00
shortcutme
e3de6da87e Ignore deleted files on contetndb iteritems 2016-09-09 12:24:00 +02:00
shortcutme
7d78623c92 Remove unnecessary logging 2016-09-09 12:23:26 +02:00
shortcutme
c8325589cc Rev1515 2016-09-07 17:43:18 +02:00
shortcutme
212eabbc20 Remove broken torrent tracker 2016-09-07 17:42:06 +02:00
shortcutme
b2b91c9aff Remove save error message when no sites loaded yet 2016-09-07 17:41:55 +02:00