Commit Graph

499 Commits

Author SHA1 Message Date
Snail 5e997acc59 peermain probes 2024-12-04 13:42:58 +03:00
voidlizard 74782d00d2 gc params tuned for hbs2-peer 2024-12-04 13:42:58 +03:00
voidlizard 49a1791011 wip 2024-12-04 13:42:58 +03:00
voidlizard 251b9ce5c3 TCP probe 2024-12-04 13:42:58 +03:00
voidlizard 39e790ef32 storage w. AnyProbe 2024-12-04 13:42:58 +03:00
voidlizard 2c8ef85980 fixed-messaging-and-basic-probes 2024-12-04 13:42:58 +03:00
voidlizard 82b3106ca6 fixed-messaging-and-basic-probes 2024-12-04 13:42:58 +03:00
Snail 9d57701cf2 fsck 2024-11-20 11:00:51 +03:00
Yura Shelyag ed7a402fc3 Fixed die and SIGINT exit 2024-11-01 16:02:08 +03:00
voidlizard 954b2266ab download tuned for low MTU values, needs investigation 2024-10-18 10:27:28 +03:00
Snail e29b15f90c Test walkMerkle, walkMerkleV2, streamMerkle 2024-10-05 06:07:16 +03:00
Dmitry Zuikov 86fcde758b hbs2-git-dashboard updated; status - wip 2024-10-03 06:15:17 +03:00
Dmitry Zuikov 835c01bfaa ghc-9.6.6 + updated db-pipe 2024-09-25 11:28:17 +03:00
Dmitry Zuikov c240b8ad9e fixme-new 2024-09-25 11:19:41 +03:00
Dmitry Zuikov ff9ef2ddec merged refchan notifications and fixme-new (wip) 2024-09-15 10:20:14 +03:00
Dmitry Zuikov 58fecd442b indexed keys, hbs2-keyman and hbs2-sync updated 2024-08-27 09:16:10 +03:00
Dmitry Zuikov 975bb8cb12 wip 2024-08-08 11:32:01 +03:00
Dmitry Zuikov 2761af5d60 Revert "not-good"
This reverts commit 7e0305891b.
2024-08-08 05:26:47 +03:00
Dmitry Zuikov 7e0305891b not-good 2024-08-08 05:25:59 +03:00
Dmitry Zuikov 9bab121743 merged hbs2-cli ans hbs2-sync 2024-08-07 15:20:19 +03:00
Dmitry Zuikov 9aafab745d hbs2-peer reflog cat 2024-04-09 13:09:13 +03:00
Dmitry Zuikov 26a023d60d hbs2-peer refchan cat && hbs2-peer reflog cat 2024-04-09 12:04:13 +03:00
Dmitry Zuikov d2082de4bf patch 0.24.1.1 2024-04-02 06:39:50 +03:00
Dmitry Zuikov da6bb6bcb4 0.24.1 2024-03-20 08:17:22 +03:00
Dmitry Zuikov da42a1dc69 rolled back git-http-backend 2024-03-07 07:07:48 +03:00
Dmitry Zuikov e9c7c9dbae merged new download and some intermediate changes 2024-03-06 16:10:24 +03:00
Dmitry Zuikov ba25f0c564 refactored 2024-02-21 06:34:13 +03:00
Sergey Ivanov 69f612e5fc Add brains-db config parameter 2024-02-21 06:01:56 +03:00
Dmitry Zuikov cc7f2dd948 download fixes 2024-02-21 05:55:13 +03:00
Dmitry Zuikov 677d6f1fd8 tune 2024-02-14 13:17:00 +03:00
Dmitry Zuikov 83b4d8bff8 boosted download 2024-02-14 12:02:03 +03:00
Dmitry Zuikov 4e136aa08b tuning performance 2024-02-07 17:44:47 +03:00
Dmitry Zuikov 3550d8d624 threaded download 2024-02-07 13:08:01 +03:00
Dmitry Zuikov e6ae5fb593 version command
commit 9df07ae34a6d1c7f53cee3abe2304ff81eb0a26c
Author: Sergey Ivanov <ivanovs-4@yandex.ru>
Date:   Tue Oct 24 22:25:34 2023 +0400

    `version` command for hbs2, hbs2-peer, git-hbs2
2024-01-28 07:52:08 +03:00
Dmitry Zuikov 62eb5ca49f fixed UuoMCa4gxd 2024-01-28 06:49:18 +03:00
Dmitry Zuikov dc33ed75c5 default config/default tcp/default key 2024-01-24 12:40:25 +03:00
Dmitry Zuikov ed6a484f50 block fetch progress notification 2024-01-24 07:17:21 +03:00
Dmitry Zuikov 00a316b786 basic hbs2-share 2024-01-07 10:01:12 +03:00
Dmitry Zuikov 835a0322e0 refchan refactoring 2023-12-28 06:21:57 +03:00
Dmitry Zuikov 5820b808c5 refactor: removing Proxy in HasDeferred 2023-12-27 06:48:18 +03:00
Dmitry Zuikov f0d469766e small-encrypted-block wip 2023-12-26 07:34:23 +03:00
Dmitry Zuikov d65216cc76 fixed oopsie 2023-12-20 06:04:51 +03:00
Dmitry Zuikov 24272ad4d9 refchannotify log 2023-12-20 05:54:13 +03:00
Dmitry Zuikov 18bb821dfd timestamp-to-refchan-accept 2023-12-16 07:28:51 +03:00
Dmitry Zuikov 6ed1605841 refactor refchans, download dependencies 2023-11-15 04:51:17 +03:00
Dmitry Zuikov 63caa3b5b7 refactor refchans, async management 2023-11-14 07:52:47 +03:00
Dmitry Zuikov fc52fabbf9 maybe no-respawn on STM exception fixed 2023-11-14 05:38:34 +03:00
Dmitry Zuikov e107c318c3 emitNotify / RefChanNotify on RPC 2023-11-12 12:57:24 +03:00
Dmitry Zuikov acd36a513c polling-to-separate-module 2023-11-12 07:43:47 +03:00
Dmitry Zuikov 002ecf7b3e merged notify-proto-debug fixes 2023-11-06 08:56:10 +03:00
Dmitry Zuikov 35905b94bd Notify proto + wiping resource-t in Messaging/Unix 2023-11-03 16:49:29 +03:00
Dmitry Zuikov 408cfb2c51 simK affects download 2023-10-26 18:23:03 +03:00
Dmitry Zuikov 93a3be5a1f process-only-subscribed-reflogs 2023-10-26 10:30:29 +03:00
Dmitry Zuikov 58d0e9d256 experimental SOCKS5 support
- no authorization supported (bad for network-tcp-simple)
2023-10-26 09:10:41 +03:00
Dmitry Zuikov 0a55f1a732 optional messagings (TCP, UDP) + watchdog 2023-10-26 06:18:27 +03:00
Dmitry Zuikov 27fd382cc3 fixed respawn 2023-10-26 03:53:44 +03:00
Dmitry Zuikov e7460213d7 todo 2023-10-25 11:06:17 +03:00
Dmitry Zuikov 606a6b067a less debug messages 2023-10-25 10:48:35 +03:00
Dmitry Zuikov c44a6b997b new protocol encryption + minor tuning 2023-10-25 09:01:23 +03:00
Dmitry Zuikov 9edbe5f7c9 wip 2023-10-25 09:01:23 +03:00
Dmitry Zuikov 983f24ef78 fixed exit on http-port not set 2023-10-21 17:40:28 +03:00
Dmitry Zuikov eb6d755297 try less agressive download 2023-10-21 15:55:05 +03:00
Dmitry Zuikov 0f69757813 multiple PEX fixes 2023-10-21 08:58:31 +03:00
Dmitry Zuikov 66ce6a659d Revert "faster-download-start"
This reverts commit 351ac97d44.
2023-10-20 21:28:18 +03:00
Dmitry Zuikov 1623b5b1a4 fixed pexinfo fix 2023-10-20 19:48:24 +03:00
Dmitry Zuikov 4d756d6eaf fixed? tcp pex 2023-10-20 19:45:40 +03:00
Dmitry Zuikov 351ac97d44 faster-download-start 2023-10-20 15:53:37 +03:00
Dmitry Zuikov 4aeb91a4b2 removed http download 2023-10-20 13:14:50 +03:00
Dmitry Zuikov a035b2bf34 fixed download del behaviour 2023-10-20 12:36:26 +03:00
Dmitry Zuikov 98e589fe6f fixed-block-download-control 2023-10-20 11:16:11 +03:00
Dmitry Zuikov 44ada95e3f debug: sumultaneous-downloads-coeff 2023-10-20 06:59:41 +03:00
Dmitry Zuikov bac3f99588 fix exception in main loop thread 2023-10-18 19:47:58 +03:00
Dmitry Zuikov e061a2793a fix announces (maybe) 2023-10-18 15:53:29 +03:00
Dmitry Zuikov a1bbc634f4 QBLF regression fixed
Multi-client unix socket failure
2023-10-18 15:14:32 +03:00
Dmitry Zuikov 29fdd23602 fixed reflog sync bug 2023-10-18 10:16:11 +03:00
Dmitry Zuikov 246518cd34 ghc 9.4.6 2023-10-16 06:13:27 +03:00
Dmitry Zuikov d3c63ab8e4 accept reflogupdate only for subcribed refs or from friendly peers 2023-10-15 09:26:49 +03:00
Dmitry Zuikov 3bccfa2e98 minor refactoring 2023-10-15 09:01:45 +03:00
Dmitry Zuikov b1bb280751 minor fix 2023-10-15 05:25:28 +03:00
Dmitry Zuikov 64400a425e dynamic polling management 2023-10-13 10:06:17 +03:00
Dmitry Zuikov 24644ab1df bugfix 2023-10-12 18:39:45 +03:00
Dmitry Zuikov 155765038e removed obsolete file 2023-10-09 03:29:01 +03:00
Dmitry Zuikov ff9e82b8b6 fixme + minor fix 2023-10-07 16:29:08 +03:00
Dmitry Zuikov 8842843ffb hbs2-git-to-new-rpc 2023-10-07 14:29:40 +03:00
Dmitry Zuikov 850354c529 done expose-all-new-rpc 2023-10-06 05:48:17 +03:00
Dmitry Zuikov 5cd40a17dd StorageClient
... for RPC
2023-10-05 13:53:53 +03:00
Dmitry Zuikov 15d6a1d06f modular-rpc-api
1. Making the API modular
2. Running all via single socket, including storage
2023-10-05 11:54:36 +03:00
Dmitry Zuikov 2173f43bac fixed StorageAPI 2023-10-04 19:08:12 +03:00
Dmitry Zuikov 28163d0123 storage rpc 2023-10-04 16:52:25 +03:00
Dmitry Zuikov 613f26e418 moved to RPC2
New RPC works over a Unix socket and assumes synchronous
requests with callService.

A new protocol, 'ServiceProto,' is introduced.

New RPC operates over a Unix socket.

Note the setting: (rpc2 unix "/tmp/hbs2-rpc2.socket").

The default rpc2 socket is located at /tmp/hbs2-rpc2.socket.

In the future, TCP RPC may be introduced, requiring only:

1. Authorization/Authentication

This might be accomplished through another wrapped protocol, for instance.

"Dialog"-associated elements are commented out for now,
as they will likely require their own Unix socket.
2023-10-04 10:54:39 +03:00
Dmitry Zuikov a3a5cf8f7f symm-group-encryption, schema changed
Accordingly to vulnerabilities review made by rblaze
2023-09-27 09:12:15 +03:00
Dmitry Zuikov 7572b3ffe9 symmetric, deterministic merkle-tree encryption
suckless-conf bumped
2023-09-26 18:19:33 +03:00
Dmitry Zuikov 09e070e38f merged 2023-09-21 08:40:05 +03:00
Dmitry Zuikov a980569ce4 qblf merged
- Requires testing and bugfixing
- Needs high CPU usage investigation (polling/packet flood?)
- Bundles are downloading repeatedly, that is weird
2023-09-21 08:40:05 +03:00
Dmitry Zuikov a5628a19ed bundle-basic-implementation 2023-09-21 08:39:59 +03:00
Dmitry Zuikov 51597c58cb Revert "merged"
This reverts commit eeb2735c4dc10409ba996b37cf83ba2fb178d392.
2023-09-21 08:10:16 +03:00
Sergey Ivanov 08c95bc9a9 Typelevel dialog server spec 2023-09-15 20:18:15 +04:00
Sergey Ivanov b22dc35283 Move encryption keys to ProxyMessaging
Change key for encryption key map from PeerData to EncryptionKeyIDKey

Test for quasidistributiveness of the encodeFrames

Move Dialog to HBS2.Net

Fixes with hlint:   hbs2-peer/app/PeerMain/DialogCliCommand.hs
2023-09-15 18:43:21 +04:00
Dmitry Zuikov 80278834b8 minor-fix: extracted SignedBox and code sweeped 2023-09-15 10:59:54 +03:00
Dmitry Zuikov 93137d8f4c minor-fix: extracted SignedBox and code sweeped 2023-09-15 09:43:05 +03:00
Sergey Ivanov 3a04d7f0ab use native Exception.handle to respawn 2023-08-16 16:54:45 +04:00
Sergey Ivanov b7079c2915 Revert "PR CG2C18TK8v "account asyncs, respawn node on errors""
This reverts commit 8904704edc.
2023-08-16 16:50:16 +04:00
Dmitry Zuikov 8904704edc PR CG2C18TK8v "account asyncs, respawn node on errors" 2023-08-11 06:10:09 +03:00
Dmitry Zuikov 40ba5fca68 RefLogKey moved to HBS2.Net.Proto.RefLog...
... since it is just one of many possible refs
2023-08-10 05:50:39 +03:00
Dmitry Zuikov 7274c6ceeb current refchan-notify and multiple fixes 2023-07-31 13:56:33 +03:00
Dmitry Zuikov 71e325f8bc PR 3nmxU5Ro8b dialog-proto 2023-07-28 15:36:50 +03:00
Dmitry Zuikov 0c645d5fbf reduced noise in log 2023-07-27 11:33:31 +03:00
Dmitry Zuikov 08a3ad851f minor hlint warning fix + fixme status 2023-07-27 11:29:15 +03:00
Dmitry Zuikov 42309096e1 reduced noise in log 2023-07-27 11:21:15 +03:00
Dmitry Zuikov c52be7cf5e merged PR 8ey8Fnr4c4 remove-lref-commands 2023-07-27 10:00:01 +03:00
Dmitry Zuikov b83e472057 fixed pexinfo 2023-07-27 09:43:51 +03:00
Dmitry Zuikov 8c9ea8408c wip, refchans+encryption, dev 2023-07-27 08:35:35 +03:00
Dmitry Zuikov 97f1bd2f8a added refchan-notify skeleton 2023-07-27 07:14:07 +03:00
Sergey Ivanov c60a0b4696 update after merge 2023-07-26 21:14:41 +04:00
Sergey Ivanov 75f03b9c95 Merge iv/integrate-encryption-test-dev2 into refchan-merge-2 (using imerge) 2023-07-25 16:11:47 +04:00
Dmitry Zuikov 85f64cc801 ip, log merging, debug-29 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 25f9f7ca59 ip, log merging, debug-28 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 237732e25e ip, log merging, debug-27 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 8ebcb91946 wip, log merging, debug-26 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 7d55e9984e ip, log merging, debug-25 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 9c1c3110d8 ip, log merging, debug-24 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 29d12e7b4d wip, log merging, debug-23 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 3efe992436 wip, log merging, debug-19 2023-07-25 12:27:43 +03:00
Dmitry Zuikov baf0d6e3b6 wip, log merging, debug-18 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 796a5a6f54 wip, log merging, debug-16 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 88b4d929eb wip, log merging, debug-15 2023-07-25 12:27:43 +03:00
Dmitry Zuikov e1725987c9 wip, log merging, debug-14 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 85e72361bc wip, log merging, debug-13 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 65a63db50f wip, log merging, debug-12 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 5b601c5daf wip, log merging, debug-11 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 0e1bf90928 wip, log merging, debug-11 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 43139c44ea wip, log merging, debug-10 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 85987c4902 wip, log merging, debug-9 2023-07-25 12:27:43 +03:00
Dmitry Zuikov ccce48f84b debug-8 2023-07-25 12:27:43 +03:00
Dmitry Zuikov bc713a381f wip, log merging, debug-7 2023-07-25 12:27:43 +03:00
Dmitry Zuikov e7fef02486 wip, log merging, debug-6 2023-07-25 12:27:43 +03:00
Dmitry Zuikov d77cf610d2 wip, log merging, debug-5 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 9e737afad3 wip, log merging, debug-4 2023-07-25 12:27:43 +03:00
Dmitry Zuikov b0ee8c584c wip, log merging, debug-3 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 0c8a571a76 wip, log merging, debug-2 2023-07-25 12:27:43 +03:00
Dmitry Zuikov c55e5876a8 wip, log merging, debug 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 003fc43cc1 wip, log merging, debug 2023-07-25 12:27:43 +03:00
Dmitry Zuikov f31846f848 wip, log merging, debug 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 84c74c3b4f wip, log merging 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 126994720f wip, refchanrequest events 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 819cec6402 wip, refchanget proto skeleton, no log merge 2023-07-25 12:27:43 +03:00
Dmitry Zuikov c6f6a398f7 wip, rpc for refchan get 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 611c94c0ae wip, writing log 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 204de9afc6 wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov c28f5dee50 wip, cleanup round data 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 133bc329f6 wip, cleanup round data 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 01c435ac5f wip, debug 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 609551b43e wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 697c79133e wip, renamed some stuff 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 2bb5b83eb9 wip, emitting accept message 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 07003409c3 wip, introduced typeclass for gossip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 3c10aad828 wip, hunting typeable-e-error 2023-07-25 12:27:43 +03:00
Dmitry Zuikov b304a514d7 wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 32a7ecfd70 wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 5b052e8a56 wip, minor refactoring 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 28590c6936 wip, semion semionovich... 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 781c9ded4b very basic acls work 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 51d03f2265 wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 075a28d9bf got rid of Block ByteString everywhere 2023-07-25 12:27:43 +03:00
Dmitry Zuikov e4c759a49d feed-up-with-block-bytestring 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 5691e20f6e wip, polling function 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 39c0ca71cc wip, polling function 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 51ac42f5c0 wip, tryin to fetch refchan head 2023-07-25 12:27:43 +03:00
Dmitry Zuikov c2649a6ad4 wip, tryin to fetch refchan head 2023-07-25 12:27:43 +03:00
Dmitry Zuikov e71ff57773 wip, tryin to fetch refchan head 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 17c5d3797f wip, tryin to fetch refchan head 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 3e65c4b7b7 wip, tryin to fetch refchan head 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 8e567c87d0 wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 2d5406cee0 wip, tryin to fetch refchan head 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 0e1959dfe5 wip, tryin to fetch refchan head 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 42be590baa wip, respect only polled refchans 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 3858ec35f7 wip, timeout for download 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 599310a183 wip, cli refchan head get - minor opt 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 92d5524a97 wip, missed file 2023-07-25 12:27:43 +03:00
Dmitry Zuikov c1ea68bb1b wip, cli refchan head get - minor opt 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 2a9b43397e wip, cli refchan head get 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 72d0c8222c wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 50d843e4f0 wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 82aa6576b5 wip 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 36a0282256 wip, posting refchan head transaction 2023-07-25 12:27:43 +03:00
Dmitry Zuikov e59d64bf0d wip, posting refchan head transaction 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 04a274f7cc wip, dump refchan head block 2023-07-25 12:27:43 +03:00
Dmitry Zuikov 9c8c58766b PR CGPnKdSirc hbs2-suckless-conf-update 2023-07-25 10:49:44 +03:00
Sergey Ivanov 56537f0b68 call setEncryptionKey .. (Just symmk) in considerPeerAsymmKey 2023-07-19 01:23:29 +04:00
Sergey Ivanov 15b9438406 pass peer to setEncryptionKey 2023-07-19 00:42:37 +04:00
Sergey Ivanov 3316bb3d44 traces encryption events 2023-07-19 00:35:14 +04:00
Sergey Ivanov 3abf7cbe1b Enable encryption 2023-07-19 00:05:04 +04:00
Sergey Ivanov 6d60fa3425 only send sendBeginEncryptionExchange when key is absent 2023-07-18 23:57:40 +04:00
Sergey Ivanov 21e5f4ac59 Implemented encryption key clearing on PeerExpiredEventKey 2023-07-18 23:49:47 +04:00
Sergey Ivanov 00bac2047f do not pass PeerData to encHandshake_considerPeerAsymmKey 2023-07-18 23:14:15 +04:00
Sergey Ivanov a0334f5dee Actual handlers for ProxyMessaging 2023-07-18 23:10:48 +04:00
Sergey Ivanov 9bad166566 Move types 2023-07-18 21:43:35 +04:00
Sergey Ivanov fec0c23a7f wip 2023-07-18 20:38:01 +04:00
Sergey Ivanov 5a8f1cef8b emit PeerExpiredEventKey (PeerExpiredEvent @e p mpeerData) 2023-07-18 19:56:39 +04:00
Sergey Ivanov 563377c855 emit PeerExpiredEventKey (PeerExpiredEvent @e p) 2023-07-18 19:37:02 +04:00