Commit Graph

207 Commits

Author SHA1 Message Date
Lawrence, Rendall
c88d0616f6 (minor) redis: skip empty CA cert files 2025-01-15 14:02:02 +03:00
Lawrence, Rendall
b0bbce093a add TLS configuration for redis/keydb connection 2025-01-03 22:00:45 +03:00
Lawrence, Rendall
f010cabdb1 remove separate key for L/S count 2024-06-27 20:27:20 +03:00
Lawrence, Rendall
16f82edae6 disable tests for lmdb if CGO not enabled 2024-06-25 17:49:41 +03:00
Lawrence, Rendall
5fa3b0431c add man for lmdb storage
* update dependencies
2024-06-25 17:45:30 +03:00
Lawrence, Rendall
e61045833a fix lint warnings 2024-06-24 14:01:46 +03:00
Lawrence, Rendall
13d5444ca4 (partially tested) implement LMDB GC
* added AsyncWrite and NoMetaSync flags to increase write speed (if needed)
2024-06-21 18:32:06 +03:00
Lawrence, Rendall
8f2bea1de6 (WIP) replace original lmdb-go with fork 2024-06-18 19:01:59 +03:00
Lawrence, Rendall
b92c9103b9 (WIP) implement LMDB peer storage
todo: GC
2024-06-14 18:56:44 +03:00
Lawrence, Rendall
2adbb5f8c7 (WIP) implementing lmdb peer storage 2024-06-04 18:21:53 +03:00
Lawrence, Rendall
b8e9604b9e (WIP) add suffix for redis infohash key creation (for future use) 2024-05-27 14:38:19 +03:00
Lawrence, Rendall
37c40f9231 (WIP) add LMDB storage 2024-05-21 18:39:55 +03:00
Lawrence, Rendall
2f01a7cfc8 (untested) refactor code, add separate call to create KV-store 2024-05-20 18:28:40 +03:00
Lawrence, Rendall
1a243b94c5 (minor) unify log keys 2024-03-12 15:29:58 +03:00
Lawrence, Rendall
95b7f5530f change math/rand to crypto/rand in non-test code 2024-03-05 11:01:18 +03:00
Lawrence, Rendall
772ac47e9c update dependencies
* add script for release pack
* fix lint warnings
2024-03-05 10:32:30 +03:00
Lawrence, Rendall
a5058b89d0 fix mutex deadlock om memory storage gc 2023-07-17 17:37:32 +03:00
Lawrence, Rendall
967611620e (minor) update dependencies 2023-03-22 18:19:51 +03:00
Lawrence, Rendall
665899017e (untested) move unsafe string conversion to pkg
* fix invalid UDP f/e start when no workers provided
* add bench for entire server
2023-03-22 17:51:13 +03:00
Lawrence, Rendall
b956811e40 (untested) refactor code 2023-03-21 18:59:05 +03:00
Lawrence, Rendall
d1ad0eb687 Merge branch 'fasthttp' into ctxCancel 2023-03-19 20:36:38 +03:00
Lawrence, Rendall
63e0b93db4 remove randseed package 2023-03-19 20:13:44 +03:00
Lawrence, Rendall
88f1ef7ca5 suppress context canceled error 2023-03-19 19:52:52 +03:00
Lawrence, Rendall
3e5a26dd50 fix lint warnings, update wf go version 2023-03-03 12:21:57 +03:00
Lawrence, Rendall
96cc4f7eac update go-redis to v9 2023-02-10 00:19:42 +03:00
Lawrence, Rendall
a69a476024 remove memory explicit deallocation because of race 2022-11-30 18:17:12 +03:00
Lawrence, Rendall
3b1b74ad4f simplify udp connection ID generator 2022-11-29 18:15:21 +03:00
Lawrence, Rendall
19b4b68115 revert 7e3204b9dd and replace with map+rwmutex wrappers 2022-11-27 19:32:42 +03:00
Lawrence, Rendall
765ea51796 (minor) fix log call in memory.Validate 2022-11-27 17:19:55 +03:00
Lawrence, Rendall
83da66f1b1 pre-allocate peers in memory.AnnouncePeers
* change go version to 1.19 in linter
2022-11-27 17:07:31 +03:00
Lawrence, Rendall
7e3204b9dd replace go map with cornelk/hashmap in memory store 2022-11-27 16:22:04 +03:00
Lawrence, Rendall
234c65333e Add workers config parameter to start concurrent listeners 2022-11-25 13:58:04 +03:00
Lawrence, Rendall
ef6d820c5b Add cmd option for quick start w/o config file 2022-11-18 18:28:19 +03:00
Lawrence, Rendall
db671d3891 (minor) change Bytes with Hex call in logger 2022-11-18 16:05:03 +03:00
Širhoe Biazhkovič
0cbc5854cd refactor timecache
* change clock to `atomic.Int64`
* add `once` fields for starter and stopper
* update dependencies

note: go version updated to 1.19
2022-11-16 19:59:07 +03:00
Lawrence, Rendall
d8d6f2cf4b refactor code for context fallthrough 2022-11-01 17:02:24 +03:00
Lawrence, Rendall
d6de38bdbd (wip) pass context from frontend request down to store 2022-10-31 18:57:57 +03:00
Lawrence, Rendall
c1e041b4f8 (wip) fix invalid http compact address encode
* add packages to loggers
* split config examples with different storages
2022-10-25 18:38:55 +03:00
Lawrence, Rendall
dff0ba6da8 (wip) rework configuration to support multiple frontends 2022-10-21 17:53:03 +03:00
Širhoe Biazhkovič
3d48b882c5 fix pg test and lint warning
TODO: update doc and sample config
2022-10-17 19:50:59 +03:00
Širhoe Biazhkovič
3506865329 add download count number while scrape
* remove storage configuration print
* change test for pg storage
2022-10-17 18:37:07 +03:00
Širhoe Biazhkovič
505f7020ad (not tested) add named queries support in PG storage
* update dependencies
2022-10-17 14:08:17 +03:00
Lawrence, Rendall
640c6c605b fix lint warning 2022-10-01 20:18:31 +03:00
Lawrence, Rendall
2c6ecf64df update pgx driver 2022-10-01 20:17:40 +03:00
Lawrence, Rendall
694592f881 fix list warnings
* remove deprecated lint checks
* reformat files
* update dependencies
2022-09-06 13:34:57 +03:00
Lawrence, Rendall
92ce0df932 (minor) fix invalid PG gc query example 2022-06-27 15:59:34 +03:00
Lawrence, Rendall
0fd0e06360 (tested) change DataStorage interface to accept byte array as value 2022-06-23 21:01:05 +03:00
Lawrence, Rendall
73d8922c74 (partially tested) add pg storage configuration and man
* update test query for `pg`
* attach `pg` to supported storages
* fix lint warnings
* update dependencies
2022-06-21 18:01:08 +03:00
Lawrence, Rendall
8c12cd9b35 (partially tested) fix pg tests, add postgres service in workflows 2022-06-20 17:19:23 +03:00
Lawrence, Rendall
0564dfce4b (untested) add pg storage tests 2022-06-18 20:52:57 +03:00