Commit Graph

818 Commits (bf28278f72f6bca770e4b8a3930da2eabb8301d2)

Author SHA1 Message Date
Zlatin Balevsky 9373d58b53 limit the time a header read can take 2019-11-18 09:00:11 +00:00
Zlatin Balevsky cb9a1cfff6 remove stray import 2019-11-17 15:05:29 +00:00
Zlatin Balevsky 0c40c8f269 Release 0.6.6 2019-11-16 17:12:21 +00:00
Zlatin Balevsky 5dff319746 prevent starting chat server more than once. Implement chat console in the cli 2019-11-16 16:40:07 +00:00
Zlatin Balevsky 286a0a8678 redo locking around chat client state 2019-11-16 14:41:47 +00:00
Zlatin Balevsky 17eff7d77f toString 2019-11-16 00:25:50 +00:00
Zlatin Balevsky 2e22369ce0 set flag before submitting to threadpool 2019-11-15 23:12:17 +00:00
Zlatin Balevsky 15c59b440f flush outputstream on chat connect failures or rejections 2019-11-15 21:52:35 +00:00
Zlatin Balevsky fec81808e5 Release 0.6.5 2019-11-14 05:15:26 +00:00
Zlatin Balevsky 114bc06dbb If the user explicitly shares a file, remove it form the negative tree. #26 2019-11-13 22:00:10 +00:00
Zlatin Balevsky 5fa2f2753c Release 0.6.4 2019-11-13 20:06:53 +00:00
Zlatin Balevsky f7f4513109 better help and welcome message 2019-11-13 17:50:50 +00:00
Zlatin Balevsky a0ab07a7c0 show browse status for local results correctly 2019-11-13 11:58:55 +00:00
Zlatin Balevsky f875c379ce Release 0.6.3 2019-11-12 17:22:38 +00:00
Zlatin Balevsky c6e98db9d4 initialize result sender properly 2019-11-12 15:50:58 +00:00
Zlatin Balevsky 35a26e2a47 advertise chat ability in search results 2019-11-12 15:47:38 +00:00
Zlatin Balevsky beef4af329 ui for chat options 2019-11-12 15:31:20 +00:00
Zlatin Balevsky 289b958784 disconnect functionality 2019-11-12 14:19:57 +00:00
Zlatin Balevsky 3d36351a6b fetch the list of current room members when joining 2019-11-12 10:55:21 +00:00
Zlatin Balevsky d57d2ccb71 print help message on joining 2019-11-12 04:18:35 +00:00
Zlatin Balevsky 6bc61c920d start outgoing connection 2019-11-12 00:11:26 +00:00
Zlatin Balevsky 18d19ca75e wip on joining and leaving rooms 2019-11-11 23:32:23 +00:00
Zlatin Balevsky 29e499fe9d hook up core and backend 2019-11-11 22:42:55 +00:00
Zlatin Balevsky 3db167bade send periodic pings 2019-11-11 17:54:33 +00:00
Zlatin Balevsky bfe0ab7867 wip on hooking UI with core 2019-11-11 17:48:42 +00:00
Zlatin Balevsky 0632336cd1 add ability to start and stop chat server from UI 2019-11-11 15:16:23 +00:00
Zlatin Balevsky aa221cd6dc server-side handling of disconnects and trust events 2019-11-11 14:54:10 +00:00
Zlatin Balevsky 29b5c55328 client-side disconnect handling 2019-11-11 13:31:00 +00:00
Zlatin Balevsky 5e7f3587df shutdown chat components 2019-11-11 13:26:25 +00:00
Zlatin Balevsky 8afd387ca6 hook up chat components with core 2019-11-11 13:21:16 +00:00
Zlatin Balevsky 5d16963d1c process join/leave/say server-side 2019-11-11 12:19:32 +00:00
Zlatin Balevsky 6080c8b308 chat client and server 2019-11-11 10:43:52 +00:00
Zlatin Balevsky a549ad3d8d wip on chat 2019-11-11 04:36:43 +00:00
Zlatin Balevsky b6f5ec7d22 wip on chat 2019-11-10 20:34:24 +00:00
Zlatin Balevsky 761bf0a177 Release 0.6.2 2019-11-10 18:31:30 +00:00
Zlatin Balevsky 036971cfe5 wip on file preview 2019-11-10 13:59:01 +00:00
Zlatin Balevsky a2637570b1 Release 0.6.1 2019-11-10 06:23:28 +00:00
Zlatin Balevsky 6012adbeab fix unsharing of files with comments 2019-11-10 06:04:57 +00:00
Zlatin Balevsky 8f6b6b0caa update test for new json format 2019-11-10 05:20:09 +00:00
Zlatin Balevsky 8f3b5aea8d store lowercases in search index 2019-11-10 05:14:31 +00:00
Zlatin Balevsky 5d8401e4bf avoid NPE, pending further investigation 2019-11-09 20:10:21 +00:00
Zlatin Balevsky fbf9add82a Release 0.6.0 2019-11-09 19:27:36 +00:00
Zlatin Balevsky 7d50843754 make signed queries mandatory 2019-11-09 17:03:38 +00:00
Zlatin Balevsky f4a2864942 add extended signature in queries to prevent replay attacks 2019-11-09 16:39:16 +00:00
Zlatin Balevsky 549457e36f close output stream silently 2019-11-08 21:46:44 +00:00
Zlatin Balevsky 14d6d10546 Release 0.5.10 2019-11-08 21:11:20 +00:00
Zlatin Balevsky 27831b488b add getter and use it; account for the case where a file has no certificates 2019-11-08 19:20:06 +00:00
Zlatin Balevsky 2f6cd311a0 say never if timestamp is 0 2019-11-08 08:30:29 +00:00
Zlatin Balevsky f95e9450f3 OutputStream.write 2019-11-08 07:47:11 +00:00
Zlatin Balevsky 2017b53a43 pass comments on trust list subscriptions 2019-11-08 07:37:51 +00:00
Zlatin Balevsky dbb305139b update for new type 2019-11-08 06:53:22 +00:00
Zlatin Balevsky 0801bfec08 add optinal reason for trusting/distrusting 2019-11-08 06:46:03 +00:00
Zlatin Balevsky 62e72a7ce0 Release 0.5.9 2019-11-07 20:01:15 +00:00
Zlatin Balevsky 3b2e1cf98c make sure the persona reported by the browser matches 2019-11-07 18:35:34 +00:00
Zlatin Balevsky 5de8a51e47 account for unknown searchers 2019-11-07 18:34:11 +00:00
Zlatin Balevsky f5c07f13c0 core side of searchers tracking 2019-11-07 18:31:20 +00:00
Zlatin Balevsky c7b0ae34af associate persona with a search event, add skeleton for shared file panel 2019-11-07 17:43:37 +00:00
Zlatin Balevsky cad5301827 rewrite Persona and Name in java 2019-11-07 17:41:32 +00:00
Zlatin Balevsky 739dbc7a24 fix serialization of older certificates 2019-11-06 18:09:50 +00:00
Zlatin Balevsky 30dda180eb Add support for comments in certificates, bump certificate version 2019-11-06 15:32:39 +00:00
Zlatin Balevsky 83ea1bed3e add timestamp to the filename of the certificate 2019-11-06 14:05:17 +00:00
Zlatin Balevsky 9181829e4a split by newlines 2019-11-06 13:59:14 +00:00
Zlatin Balevsky 94678bad3c Release 0.5.8 2019-11-06 05:46:52 +00:00
Zlatin Balevsky e7072803e9 Merge branch 'master' of https://github.com/zlatinb/muwire 2019-11-06 05:42:14 +00:00
Zlatin Balevsky e9f7a51e16 Always share update files; disable forced update check on startup 2019-11-06 05:41:58 +00:00
Zlatin Balevsky 9feb891c51 support phrases in search 2019-11-05 15:52:23 +00:00
Zlatin Balevsky b865376d24 more tests 2019-11-05 14:41:27 +00:00
Zlatin Balevsky 8dcba7535c modify indexing and search logic to account for phrases 2019-11-05 13:24:22 +00:00
Zlatin Balevsky 7e881f1fe6 close() output streams on rejection, update test 2019-11-05 12:57:52 +00:00
Zlatin Balevsky a9aad7d9db test with deleted files 2019-11-05 12:57:16 +00:00
Zlatin Balevsky 149568520f register necessary event, initialize mvc group, correct name representation 2019-11-04 19:05:53 +00:00
Zlatin Balevsky c672880db0 statement was in wrong place 2019-11-04 18:45:57 +00:00
Zlatin Balevsky dba863a864 hook up CertClient, check that infohash in cert matches 2019-11-04 18:33:57 +00:00
Zlatin Balevsky 36c1a1a288 core side of certificate exchange 2019-11-04 17:17:57 +00:00
Zlatin Balevsky 5d51b1c580 ability to certify shared files 2019-11-04 15:22:24 +00:00
Zlatin Balevsky bf3502220f sign update queries as well 2019-11-03 22:44:42 +00:00
Zlatin Balevsky ff1df88601 Release 0.5.7 2019-11-03 12:35:04 +00:00
Zlatin Balevsky e22d5fea11 better search box 2019-11-03 01:50:55 +00:00
Zlatin Balevsky a9f623a91a correct method name 2019-11-02 18:51:02 +00:00
Zlatin Balevsky 1ce410e943 wip on signing queries 2019-11-02 18:34:13 +00:00
Zlatin Balevsky 86894f242b support UTF-8 in persona names 2019-11-02 14:43:24 +00:00
Zlatin Balevsky 568255140f visualize the negative tree as well 2019-11-02 12:54:43 +00:00
Zlatin Balevsky 1c396711ed Fix sidecar files larger than the limit from being shared 2019-11-02 11:15:08 +00:00
Zlatin Balevsky c154d9538d only check negative tree for files, not directories 2019-11-02 10:28:04 +00:00
Zlatin Balevsky 00c529cca1 toString() 2019-11-02 00:40:08 +00:00
Zlatin Balevsky 094b9ac2b0 restore behavior where watched directories get scanned on startup 2019-11-02 00:27:12 +00:00
Zlatin Balevsky 0dae0a561b more accurate speed measurement. Makes a difference if MW is minimized for a long time 2019-11-01 18:39:41 +00:00
Zlatin Balevsky 82eaafc2c3 Release 0.5.6 2019-10-31 23:22:13 +00:00
Zlatin Balevsky 2429bbf59e Add update notification window 2019-10-31 20:51:09 +00:00
Zlatin Balevsky 11007e5f19 allow up to exact max comment length 2019-10-30 21:20:09 +00:00
Zlatin Balevsky ae651cb6bd implement sidecar files 2019-10-30 21:07:59 +00:00
Zlatin Balevsky 3b882ae644 Release 0.5.5 2019-10-29 16:16:36 +00:00
Zlatin Balevsky 5b61738ca9 skip downloaders that can't start 2019-10-29 15:56:19 +00:00
Zlatin Balevsky c77d79513e more long arithmetic fixes 2019-10-29 15:34:48 +00:00
Zlatin Balevsky 9f12442897 long arithmetic 2019-10-29 15:07:29 +00:00
Zlatin Balevsky 477b0a47ad more logging 2019-10-29 14:33:23 +00:00
Zlatin Balevsky 7f1041dd96 @Log 2019-10-29 14:22:28 +00:00
Zlatin Balevsky 99393c59bd log when skipping a download 2019-10-29 14:15:43 +00:00
Zlatin Balevsky a78d8c84ca unmap before flushing 2019-10-29 13:12:59 +00:00
Zlatin Balevsky fa9c697bfa do not flush the output stream on Endpoint.close(). This fixes the long shutdown time 2019-10-29 12:38:41 +00:00
Zlatin Balevsky e5b12701f5 do not crash the core if the XHave in mesh.json fails to parse 2019-10-29 10:28:14 +00:00
Zlatin Balevsky f69727ab43 wait less time for reset() 2019-10-29 09:35:57 +00:00
Zlatin Balevsky d7c7afe2c0 move the connections closing to a separate threadpool and limit the time we wait for reset() to complete 2019-10-29 09:01:41 +00:00
Zlatin Balevsky 6c806c4441 fix display of uploader progress to reach 100% 2019-10-29 01:00:59 +00:00
Zlatin Balevsky c4095abdb4 sanity-check the X-Have header 2019-10-29 00:15:00 +00:00
Zlatin Balevsky 8801546854 tighten piece size range 2019-10-28 23:36:40 +00:00
Zlatin Balevsky f6ee49c0f5 add upper bounds to the file length and piece size 2019-10-28 23:25:32 +00:00
Zlatin Balevsky 2320d650f6 do not serialize meshes that have more downloaded pieces than total pieces. To be investigated further 2019-10-28 23:16:27 +00:00
Zlatin Balevsky e9e6e6920a <= part 2 2019-10-28 23:12:32 +00:00
Zlatin Balevsky 87e5007f39 <= 2019-10-28 23:06:50 +00:00
Zlatin Balevsky 8df6715e24 guard mesh.json as well 2019-10-28 23:00:03 +00:00
Zlatin Balevsky 6d587bf228 guard against piece size or count of 0 2019-10-28 22:51:24 +00:00
Zlatin Balevsky 8684452848 Add ability to limit the total number of upload slots, as well as per user 2019-10-28 14:48:38 +00:00
Zlatin Balevsky 5eb8d75bba Show how many times we've been browsed and increment hit counter 2019-10-27 11:26:41 +00:00
Zlatin Balevsky 2bb9480137 the filetree map gets accessed from the directory watcher thread 2019-10-27 09:54:16 +00:00
Zlatin Balevsky 7a6365f87a Implement a negative lookup structure to prevent explicitly unshared files in watched directories from being re-shared 2019-10-27 09:13:22 +00:00
Zlatin Balevsky 56540ca3ca delay initial persistence to give chance to events to reach FileManager 2019-10-27 09:08:57 +00:00
Zlatin Balevsky 29562c42ea add toString() 2019-10-27 05:12:01 +00:00
Zlatin Balevsky 9bd3c4f141 add speed column to uploads table 2019-10-27 03:00:54 +00:00
Zlatin Balevsky 56d44e6458 Do not clear uploads by default 2019-10-26 16:45:21 +01:00
Zlatin Balevsky c6fb76610d Add search hit and download count to shared file table in both UIs 2019-10-26 15:02:46 +01:00
Zlatin Balevsky 43987be463 prevent RejectedExecutionExceptions on shutdown 2019-10-25 06:13:20 +01:00
Zlatin Balevsky b412f9fb0c Release 0.5.3 2019-10-23 09:01:19 +01:00
Zlatin Balevsky 770396ba41 update test 2019-10-22 10:31:28 +01:00
Zlatin Balevsky 54073af933 Release 0.5.2 2019-10-22 00:28:53 +01:00
Zlatin Balevsky e40520be46 count hopeless and failing hosts, prettier status panel 2019-10-21 23:57:15 +01:00
Zlatin Balevsky 8da5a428c9 make the i2p version a variable 2019-10-21 21:02:37 +01:00
Zlatin Balevsky 66bd249ed3 show percentage of fetched results 2019-10-21 18:28:37 +01:00
Zlatin Balevsky 1dc88cb96b make speed smoothing interval configurable 2019-10-20 20:09:24 +01:00
Zlatin Balevsky a1fe3c01b9 if no incompletes are in serialized json, use the default one, assuming an upgrade 2019-10-20 18:24:16 +01:00
Zlatin Balevsky ab323db62a add ability to choose the incompletes location 2019-10-20 18:16:07 +01:00
Zlatin Balevsky d954387e41 fix showing of local files in results 2019-10-20 11:59:48 +01:00
Zlatin Balevsky ea9db21a18 wip on compressed results 2019-10-20 01:01:34 +01:00
Zlatin Balevsky 136cf89c9b groovy != java 2019-10-20 00:55:31 +01:00
Zlatin Balevsky 46de1baf88 compressed results 2019-10-20 00:54:32 +01:00
Zlatin Balevsky 13f7b8563c fix a bug where disabled browsing was shown as browsable. Log the response code if it's not 200 2019-10-19 22:33:47 +01:00
Zlatin Balevsky 9c15208f3a Release 0.5.1 2019-10-19 19:11:04 +01:00
Zlatin Balevsky a9ce9d96b3 wip on menu; close zlib stream 2019-10-19 18:54:58 +01:00
Zlatin Balevsky 8395047386 compress results in browse connections 2019-10-19 17:59:08 +01:00
Zlatin Balevsky 94340480b4 wip on browse host 2019-10-18 23:25:26 +01:00
Zlatin Balevsky 8850d49c63 wip on browse host 2019-10-18 23:16:37 +01:00
Zlatin Balevsky 7f4cd4f331 wip on browse host 2019-10-18 21:17:34 +01:00
Zlatin Balevsky e6162503f6 wip on browse host 2019-10-18 20:29:39 +01:00
Zlatin Balevsky 946d9c8f32 disable sharing of hidden files by default, add option to enable 2019-10-17 05:46:27 +01:00
Zlatin Balevsky 02441ca1e3 add option to disable searching in comments 2019-10-16 19:57:18 +01:00
Zlatin Balevsky d4c08f4fe6 only remove from index if no more files have the same comment pt.2 2019-10-16 14:23:12 +01:00
Zlatin Balevsky 942de287c6 only remove from index if no more files have the same comment 2019-10-16 14:21:50 +01:00
Zlatin Balevsky d0299f80c6 search through comments 2019-10-16 14:06:11 +01:00
Zlatin Balevsky 1227cf9263 Release 0.5.0 2019-10-15 12:38:25 +01:00
Zlatin Balevsky f5bccd8126 All shared directories are watched directories. Fix manipulation of tree structure 2019-10-15 08:38:23 +01:00
Zlatin Balevsky feb712c253 Move persisting of files on dedicated thread. Introduce an event to forcefully persist files. Do that immediately after unsharing anything 2019-10-15 04:21:40 +01:00
Zlatin Balevsky a24982e0df fix comments for local results 2019-10-14 22:47:52 +01:00
Zlatin Balevsky c7284623bc Release 0.4.16 2019-10-13 22:14:33 +01:00
Zlatin Balevsky b28587a275 wip on file comments 2019-10-11 18:42:02 +01:00
Zlatin Balevsky 337605dc0f Release 0.4.15 2019-10-10 16:48:10 +01:00
Zlatin Balevsky 14bdfa6b2e throttle even further - 500/s 2019-10-09 17:34:54 +01:00
Zlatin Balevsky ed3f9da773 throttle loading even further, to 1000/sec 2019-10-09 16:46:17 +01:00
Zlatin Balevsky 251080d08f throttle loading of files to 500/s 2019-10-09 16:34:09 +01:00
Zlatin Balevsky 20b51b78a0 reduce priority of file persister thread 2019-10-07 11:59:51 +01:00
Zlatin Balevsky 8b0668a134 Rewrite utils into Java, cache the persistable data of shared files to reduce object churn 2019-10-05 22:50:32 +01:00
Zlatin Balevsky 69906a986d set i2p.dir.base to prevent router creating files in PWD 2019-10-05 15:03:59 +01:00
Zlatin Balevsky 2eec7bec5b fix most core tests 2019-10-05 04:20:14 +01:00
Zlatin Balevsky abe28517bc Release 0.4.14 2019-10-04 13:00:57 +01:00
Zlatin Balevsky 91d771944b add option for sequential download 2019-10-03 20:45:22 +01:00
Zlatin Balevsky e09c456a13 make the download retry interval in seconds, default still 1 minute 2019-10-03 19:31:15 +01:00
Zlatin Balevsky eda3e7ad3a Add option to not search extra hop, only considered if connecting only to trusted peers, issue #6 2019-10-02 05:45:46 +01:00
Zlatin Balevsky e9798c7eaa remember last rejection and back off from hosts that reject us. Fix return value of retry and hopelessness predicates 2019-10-01 08:34:43 +01:00
Zlatin Balevsky 66bb4eef5b close outbound establishments on a separate thread 2019-10-01 07:50:29 +01:00
Zlatin Balevsky 32d4c3965e Release 0.4.13 2019-09-29 19:00:20 +01:00
Zlatin Balevsky de1534d837 reduce the default host retry interval 2019-09-29 18:45:09 +01:00
Zlatin Balevsky 7b58e8a88a separate setting for the interval after which a host is considered hopeless 2019-09-29 18:43:39 +01:00
Zlatin Balevsky 8a03b89985 clean up the filtering logic; allow serialization of hosts that can be retried 2019-09-29 16:49:02 +01:00
Zlatin Balevsky 1d97374857 track last successful attempt. Only re-attempt hosts if they have ever been successful. Do not serialize hosts considered hopeless 2019-09-29 16:19:19 +01:00
Zlatin Balevsky 549e8c2d98 Release 0.4.12 2019-09-22 16:55:04 +01:00
Zlatin Balevsky b54d24db0d new update server destination 2019-09-22 16:47:35 +01:00
Zlatin Balevsky 6430ff2691 bump i2p libs version 2019-09-22 16:13:12 +01:00
Zlatin Balevsky 417675ad07 update dark_trion's hostcache address 2019-07-22 21:48:29 +01:00
Zlatin Balevsky 85610cf169 add new host-cache 2019-07-15 22:05:09 +01:00
Zlatin Balevsky e8322384b8 Release 0.4.11 2019-07-15 14:28:21 +01:00
Zlatin Balevsky 56e9235d7b avoid FS call to get file length 2019-07-11 15:28:25 +01:00
Zlatin Balevsky 2fba9a74ce persist files.json every minute 2019-07-11 14:32:57 +01:00
Zlatin Balevsky 2bb6826906 canonicalize all files before they enter FileManager and do not look for absolute path on persistence 2019-07-11 14:32:12 +01:00
Zlatin Balevsky 9f339629a9 remove unnecessary canonicalization 2019-07-11 11:58:20 +01:00
Zlatin Balevsky 58d4207f94 Release 0.4.10 2019-07-11 05:09:05 +01:00
Zlatin Balevsky 92dd7064c6 Release 0.4.9 2019-07-10 12:02:36 +01:00
Zlatin Balevsky ee2fd2ef68 single hit per search uuid 2019-07-09 21:22:31 +01:00
Zlatin Balevsky ce660cefe9 deleting of rules 2019-07-09 20:50:07 +01:00
Zlatin Balevsky 72b81eb886 fix matching 2019-07-09 20:27:28 +01:00
Zlatin Balevsky fd0bf17c24 add ability to unregister event listeners 2019-07-09 19:53:08 +01:00
Zlatin Balevsky ac12bff69b wip on content control panel ui 2019-07-09 19:20:06 +01:00
Zlatin Balevsky feef773bac hook up content control panel to rest of UI 2019-07-09 17:55:36 +01:00
Zlatin Balevsky 239d8f12a7 wip on core side of content management 2019-07-09 17:13:09 +01:00
Zlatin Balevsky 8bbc61a7cb add settings for watched keywords and regexes 2019-07-09 16:50:51 +01:00
Zlatin Balevsky 7f31c4477f matchers for keywords 2019-07-09 11:47:55 +01:00
Zlatin Balevsky 6bad67c1bf Release 0.4.8 2019-07-08 18:30:19 +01:00
Zlatin Balevsky bcce55b873 fix integer overflow 2019-07-07 10:58:39 +01:00
Zlatin Balevsky d8e44f5f39 kill other workers if download is finished 2019-07-06 22:21:13 +01:00
Zlatin Balevsky 066ee2c96d wrong list 2019-07-06 11:28:04 +01:00
Zlatin Balevsky 0a8016dea7 enable stealing of pieces from other download workers 2019-07-06 11:26:18 +01:00
Zlatin Balevsky db36367b11 avoid AIOOBE 2019-07-06 11:00:31 +01:00