0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-28 03:38:53 +02:00
Commit graph

959 commits

Author SHA1 Message Date
Jason Volk
06b70cc274 ircd:Ⓜ️:vm: Fix require_content=false behavior as described by option's doc. 2022-08-10 18:20:52 -07:00
Jason Volk
4a254dd3ac ircd:Ⓜ️ Split vm.conforms hook handles into unit. 2022-08-10 18:20:52 -07:00
Jason Volk
ed5dfd0031 ircd:Ⓜ️:fetch: Split fetch_check related into unit. 2022-08-10 18:20:52 -07:00
Jason Volk
c32928981b ircd:Ⓜ️:dbs::init: Split unit; preliminary schema update vector; ctor exceptions. 2022-08-06 22:47:59 -07:00
Jason Volk
49615517cc ircd:Ⓜ️:room::content: Move prefetch buffer to class member. 2022-08-05 18:38:32 -07:00
Jason Volk
e45dc31797 ircd:Ⓜ️:vm::eval: Use closure_bool for_each(); reduce direct instance_list iteration. 2022-08-05 17:57:19 -07:00
Jason Volk
14eb419045 ircd:Ⓜ️ Add m.in_reply_to to m::relates tuple and reuse in m::room::message. 2022-08-04 18:25:49 -07:00
Jason Volk
b75f0ea1ef ircd:Ⓜ️ Move multi-key fetch from vm:: to keys::; minor reorg. 2022-08-03 20:26:33 -07:00
Jason Volk
71f0d15910 ircd:Ⓜ️:dbs: Deduplicate m.in_reply_to extraction w/ a4ec2dd8ab. 2022-08-02 20:49:21 -07:00
Jason Volk
35199dffb3 ircd:Ⓜ️:room::message: Add interface to extract rich reply fallbacks. 2022-08-02 20:49:21 -07:00
Jason Volk
504e0a1883 ircd:Ⓜ️:room::message: Name m.relates_to in the tuple. 2022-08-02 15:56:04 -07:00
Jason Volk
c33ddd278a ircd:Ⓜ️ Use proper character overload for optimal tokens(). 2022-08-02 13:18:58 -07:00
Jason Volk
9f79bb54b8 ircd:Ⓜ️:fetch: Stub branch to make use of redacted_by. 2022-07-30 23:28:19 -07:00
Jason Volk
0ba3c5629f ircd:Ⓜ️:room::events::missing: Dedup inner loop; optimize w/ parallel query. 2022-07-30 20:58:59 -07:00
Jason Volk
03262e09a9 ircd:Ⓜ️:dbs: Add conf items for less aggressive compact trig on large columns. 2022-07-29 23:56:52 -07:00
Jason Volk
c76aec69a9 ircd:Ⓜ️:dbs: Upgrade descriptors to designated initializers. 2022-07-29 22:30:09 -07:00
Jason Volk
a2197e87df ircd:Ⓜ️:resource: Unstable is also a version (undocumented). 2022-07-29 17:35:58 -07:00
Jason Volk
69dcd7acd9 ircd::mods: Eliminate RTLD_DEEPBIND by linking modules -Bsymbolic. 2022-07-27 16:22:42 -07:00
Jason Volk
c002e03242 configure: Add PROFILE_USE conditional and subst. 2022-07-27 14:32:47 -07:00
Jason Volk
065343069a Fix -flto flag compat erosion w/ gcc. 2022-07-20 12:03:59 -07:00
Jason Volk
041c4822bc ircd:Ⓜ️ Fix conflicting TLS models for static member buffers. 2022-07-20 10:42:13 -07:00
Jason Volk
741c211848 configure: Add conditional flags for forced pch w/ clang. 2022-07-20 09:56:22 -07:00
Jason Volk
216a2b64cb Move -include arguments to preprocessor flags. 2022-07-20 09:56:22 -07:00
Jason Volk
3a5f7e0aac ircd::resource: Implement more complex path routing. 2022-07-20 09:56:22 -07:00
Jason Volk
e4d517415b ircd:Ⓜ️:acquire: Add conf items to default some opts; rename and raise submit max. 2022-07-18 16:58:02 -07:00
Jason Volk
d4bd109661 modules/media: Remove legacy resources.
modules/federation: Merge invite and invite2 units.

modules/federation: Redact send_join and rooms legacy resources.
2022-07-18 16:58:02 -07:00
Jason Volk
93a7575352 ircd:Ⓜ️:resource: Abstract request::version to ircd::request::agent. 2022-07-18 16:58:02 -07:00
Jason Volk
45a4c80e79 ircd:Ⓜ️:media: Log file room write errors and debug at completion. 2022-07-13 22:48:14 -07:00
Jason Volk
994702b32f ircd:Ⓜ️:filter: Add overloads to match() w/ fetch from event_idx. 2022-07-13 22:48:14 -07:00
Jason Volk
e2e0b6294f ircd:Ⓜ️:filter: Remove noexcept due to supplied json parse. 2022-07-13 22:48:13 -07:00
Jason Volk
ec55b9b30f ircd:Ⓜ️ Implement matrix-org/matrix-spec-proposals#3316 timestamp massaging. 2022-07-12 08:41:40 -07:00
Jason Volk
584a0f49bd ircd:Ⓜ️:room::power: Log debug errors in these handlers. 2022-07-11 22:44:52 -07:00
Jason Volk
5e3ae3771d ircd:Ⓜ️:homeserver: Fix database conf values overriding environmental values. 2022-07-11 12:53:33 -07:00
Jason Volk
3992af9388 ircd:Ⓜ️:acquire: Promote and improve some log messages for non-debug builds. 2022-07-10 15:48:05 -07:00
Jason Volk
4cc27552d5 Revert "ircd:Ⓜ️:essential: Add join_authorised_via_users_server and allow keys."
This reverts commit 994fc56f8e.
2022-07-10 15:48:05 -07:00
Jason Volk
1fb853dd83 Makefile: Incremental format for remaining flags and targets. 2022-07-09 15:00:58 -07:00
Jason Volk
27624c48cd ircd:Ⓜ️:acquire: Consolidate interruption check for faster shutdown sequence. 2022-07-09 14:33:38 -07:00
Jason Volk
cc3999486e ircd:Ⓜ️:fetch: Further hoist throw fetch termination; fix error message. (934d76e81d) 2022-07-09 14:33:14 -07:00
Jason Volk
11f878209f ircd:Ⓜ️:room::events: Comment on ctors; minor assertions. 2022-07-09 14:10:28 -07:00
Jason Volk
9788ce9863 ircd:Ⓜ️:acquire: Add accumulators for acquires and fetches. 2022-07-08 23:24:06 -07:00
Jason Volk
3451a989ac Add noexcept to various lambdas (gcc-12). 2022-07-07 16:47:55 -07:00
Jason Volk
934d76e81d ircd:Ⓜ️:fetch: Skip result check and any retry if requestor went away. 2022-07-07 16:47:55 -07:00
Jason Volk
6917ec8561 ircd:Ⓜ️:fetch: Increase default request limit. 2022-07-05 13:01:58 -07:00
Jason Volk
b88454e793 ircd:Ⓜ️🆔 Ensure expected iterator types; fix iterator interference. 2022-07-05 13:01:58 -07:00
Jason Volk
29f4620826 ircd:Ⓜ️ Ensure signed integer subtractions are defined. 2022-07-05 13:01:58 -07:00
Jason Volk
994fc56f8e ircd:Ⓜ️:essential: Add join_authorised_via_users_server and allow keys. 2022-07-04 22:25:18 -07:00
Jason Volk
46cae6f24b modules/m_room_member: Support knocking membership/auth_rules. 2022-07-04 22:25:18 -07:00
Jason Volk
95d6561ca1 ircd:Ⓜ️ Improve various options related. 2022-07-04 22:25:18 -07:00
Jason Volk
55d5b4d1a7 ircd:Ⓜ️:acquire: Fix fetching map critical emplacement. 2022-07-04 22:25:18 -07:00
Jason Volk
601f59248a ircd:Ⓜ️:vm::fetch: Improve fetch opts constructions. 2022-07-02 23:56:11 -07:00
Jason Volk
e2d1e0c3b2 ircd:Ⓜ️:init::backfill: Split term() from fini() for blocking joins. 2022-07-02 21:39:11 -07:00
Jason Volk
2e48147f10 ircd:Ⓜ️ Remove redundant event_id from exception msg. 2022-07-02 18:59:58 -07:00
Jason Volk
6d79237301 ircd:Ⓜ️:error: Improve ctor codegen; non-template out-of-line; elide fmt. 2022-07-02 18:10:38 -07:00
Jason Volk
eb10f235cf modules/federation: Implement GET /hierarchy. 2022-07-02 13:36:18 -07:00
Jason Volk
94a6cd0d90 ircd::db: Simplify options wrappings; eliminate bitflags. 2022-07-02 12:42:09 -07:00
Jason Volk
5a3346f973 ircd:Ⓜ️:request: Throw more descriptive error for node key failure. 2022-06-30 14:29:26 -07:00
Jason Volk
fe199a8ed0 ircd:Ⓜ️:request: Support destination in X-Matrix authorization header. 2022-06-30 14:21:50 -07:00
Jason Volk
4cf3476e7b modules: Add ld.gold flags section; disable unique symbols. 2022-06-29 19:07:43 -07:00
Jason Volk
1327823d2c ircd:Ⓜ️ Appease unused-result warning (for array-copy return value) internally. 2022-06-29 14:59:57 -07:00
Jason Volk
5a4a395fc2 Add noexcept to various lambdas (gcc-11). 2022-06-29 14:42:42 -07:00
Jason Volk
b677eeb4b7 Allow various unsigned conversions.
construct: Fix comparison signedness warning.
2022-06-29 14:21:36 -07:00
Jason Volk
08fce729c5 Fix redundant moves (gcc-11). 2022-06-29 13:26:01 -07:00
Jason Volk
0de0bddf5e ircd:Ⓜ️:acquire: Fix reference to rvalue event:🆔:buf. 2022-06-28 17:28:29 -07:00
Jason Volk
648f21c906 ircd:Ⓜ️🆔 Eliminate lambda frame from construction stack. 2022-06-28 17:28:28 -07:00
Jason Volk
1f8eb0b4a5 ircd:Ⓜ️🆔 Fix noexcept grammars w/ sketchy codepaths. 2022-06-28 15:44:33 -07:00
Jason Volk
4093a096fe ircd:Ⓜ️🆔 Fix inconsistent eoi check in validator grammars. 2022-06-28 15:34:17 -07:00
Jason Volk
dcbab1999a ircd::json::tuple: Remove until(); refactor templates w/ if constexpr. 2022-06-28 12:37:14 -07:00
Jason Volk
ffcb4de0e8 ircd:Ⓜ️🆔 Consistent static rules for now; missing name labels; typedefs. 2022-06-27 15:39:05 -07:00
Jason Volk
5a223d3e8c ircd:Ⓜ️🆔 Use the ircd::parse template rather than spirit::qi directly. 2022-06-24 21:31:07 -07:00
Jason Volk
110610f774 ircd:Ⓜ️ Tweak symbol related linkflags for library.
Fix $EXTRA_ flags placement; improve Makefile formatting.
2022-06-24 21:31:05 -07:00
Jason Volk
99f1740289 Fixes for gcc (gnu++20) (gcc-12). 2022-06-20 18:24:55 -07:00
Jason Volk
9ffbd8be37 ircd:Ⓜ️:fed: Implement request-side for knock suite. 2022-06-19 20:27:13 -07:00
Jason Volk
da022616d9 ircd:Ⓜ️:fed: Implement request-side for MSC3030 w/ console cmd.
matrix-org/matrix-spec-proposals#3030
2022-06-19 20:27:13 -07:00
Jason Volk
3807a4d832 ircd:Ⓜ️:fed: Add hierarchy request w/ console cmd. 2022-06-19 20:27:13 -07:00
Jason Volk
b815ac8bec ircd::fs: Eliminate user-defined ctors on various opts for designated inits. 2022-06-19 20:27:13 -07:00
Jason Volk
ffa62d0f4c ircd::json: Remove redundant typedef; simplify.
ircd:Ⓜ️ Fix ambiguous (C++20).
2022-06-19 20:14:22 -07:00
Jason Volk
e68856dff3 ircd:Ⓜ️:media::file: Use structured binding; minor cleanup. 2022-06-19 20:14:22 -07:00
Jason Volk
98d97ba0e6 modules/media: Additional assertion related; error logging; minor cleanup. 2022-06-19 20:14:22 -07:00
Jason Volk
147ae27669 modules/media: Improve type and property schema. 2022-06-19 20:14:22 -07:00
Jason Volk
d9c9ee3bbe modules/media: Use standard b64 w/ padding for content. 2022-06-19 20:14:22 -07:00
Jason Volk
58d61f4675 ircd:Ⓜ️:media::file: Switch to b64 urlsafe for room_id. 2022-06-19 20:14:22 -07:00
Jason Volk
96587f2e6d modules/media: Eliminate blocks database; encode data into event content. (#139) 2022-06-19 20:14:22 -07:00
Jason Volk
472391d5d3 modules/client/rooms: Implement client 11.36.2 GET /hierarchy. 2022-06-19 19:55:02 -07:00
Jason Volk
78257751ba We work hard with our own hands. When we are cursed, we bless; when we are persecuted, we endure it.
-- 1 Corin 4:12
2022-06-17 21:34:02 -07:00
Jason Volk
1cb26977aa ircd:Ⓜ️:vm::fetch: Fix illegal context switch in catch block. 2022-06-17 21:34:02 -07:00
Jason Volk
bee829f4a0 ircd:Ⓜ️ Disable the WAL for bootstrap eval txns. 2022-06-17 21:11:54 -07:00
Jason Volk
ffd61f3a2f ircd:Ⓜ️ Add db::sopts passthru in dbs::write_opts. 2022-06-17 21:11:54 -07:00
Jason Volk
202521b9ef ircd:Ⓜ️ Fix spacing. [ci skip] 2022-06-17 21:11:54 -07:00
Jason Volk
37b98a04f3 ircd:Ⓜ️ Fix bootstrap interrupt/terminate exception related. 2022-06-17 21:11:54 -07:00
Jason Volk
705374720b ircd:Ⓜ️ Fix bootstrap event/s counter; add coarse pct indicator. 2022-06-17 21:11:54 -07:00
Jason Volk
401f61e564 ircd::json: Remove unit linkages for constant expression values. 2022-06-17 21:11:54 -07:00
Jason Volk
3cc9743c2c ircd:Ⓜ️:vm: Remove static decls for functions moved to other unit. 2022-06-17 21:11:53 -07:00
Jason Volk
756d16220e ircd:Ⓜ️ Fix range-loop-construct warning (clang). 2022-06-17 21:11:53 -07:00
Jason Volk
4821f6d2db ircd: Move any externally used interfaces out of init objects. 2022-06-17 21:11:53 -07:00
Jason Volk
1055d66f94 Modernize various parser grammars; remove empty ctors. 2022-06-17 21:11:53 -07:00
Jason Volk
3d672ab9bc Rename common instance variables of window_buffer for clarity. 2022-06-17 21:11:53 -07:00
Jason Volk
e8915b1b28 ircd:Ⓜ️:homeserver: Bootstrap tweaks. 2022-06-17 21:11:53 -07:00
Jason Volk
90d4d8248c configure: Add -ljemalloc to LIBS; fix byzantine allocator linkages. 2022-06-17 21:11:53 -07:00
Jason Volk
952e3d1f02 ircd:Ⓜ️ Use buffer size constants. 2022-06-17 21:11:53 -07:00
Jason Volk
fb771478ee ircd:Ⓜ️ Move module name list out of m::matrix object to internal. 2022-06-17 21:11:53 -07:00
Jason Volk
0d8f069fbf ircd:Ⓜ️:events: Fix indentation; minor cleanup. 2022-06-17 21:11:53 -07:00
Jason Volk
5f5c1db9b1 ircd:Ⓜ️:homeserver: Fix net_dns_cache.so loading w/ -noautomod. 2022-06-17 21:11:52 -07:00
Jason Volk
0d4661e1ef ircd:Ⓜ️:dbs: Optimize branch complex. 2021-08-01 00:35:32 -07:00
Jason Volk
498265c5f0 ircd:Ⓜ️:room::state: Suppress verbose debuglog msg to warning. 2021-05-11 20:56:09 -07:00
Jason Volk
858479b6ab Move -include options from CPPFLAGS to CXXFLAGS. 2021-04-22 12:27:57 -07:00
Jason Volk
50f577ec6e ircd:Ⓜ️:homeserver::bootstrap: Use hugepage for event json map. 2021-03-16 12:58:22 -07:00
Jason Volk
3d380d09a3 ircd:Ⓜ️ Fix various const reference range construction warnings in clang. 2021-02-26 14:52:33 -08:00
Jason Volk
337ffbe740 ircd:Ⓜ️:init::backfill: Add cleanup/fix operations; conf items toggles. 2021-02-17 10:35:32 -08:00
Jason Volk
028fb60d1f ircd:Ⓜ️:homeserver: Tweak bootstrap vector options; smaller batch size. 2021-02-17 10:35:32 -08:00
Jason Volk
00ad278e72 ircd:Ⓜ️:room::events: Refactor range count; iterate faster; relax caller requirements. 2021-02-10 23:38:44 -08:00
Jason Volk
475f22c9a1 ircd:Ⓜ️:room::events: Improve seek_idx() impl; cleanup; modernize. 2021-02-10 23:38:44 -08:00
Jason Volk
53806a7973 ircd:Ⓜ️:room::events: Add lower_bound to seek_idx() for relaxed seek. 2021-02-10 23:38:44 -08:00
Jason Volk
efca102ef3 ircd:Ⓜ️:request: Consolidate request content buffers; remove complex tls. 2021-02-10 00:57:27 -08:00
Jason Volk
2a34c748bb ircd:Ⓜ️:homeserver::keys: Use conf item for valid_until_ts. 2021-02-09 22:42:55 -08:00
Jason Volk
2e5da32c7a ircd:Ⓜ️:bridge: Add thirdparty/protocol query. 2021-02-04 21:13:42 -08:00
Jason Volk
7d7846c57a ircd:Ⓜ️:bridge: Refactor query interface; simplify. 2021-02-04 21:13:42 -08:00
Jason Volk
207997ac95 ircd:Ⓜ️:bridge: Refactor config interface; remove central !bridge room related. 2021-02-03 18:01:15 -08:00
Jason Volk
4562c0c2e5 ircd:Ⓜ️:room: Skip invalid fetches in room purge. 2021-02-02 07:54:26 -08:00
Jason Volk
6424e0bde9 ircd:Ⓜ️ Add oper trapdoor to visibility check. 2021-02-02 07:54:26 -08:00
Jason Volk
e1db70ca04 ircd:Ⓜ️:bridge: Add make_uri() utility. 2021-02-02 07:54:26 -08:00
Jason Volk
e0f7c431cb ircd:Ⓜ️:vm: Additional stats; instrumentation around write txn. 2021-02-02 07:54:26 -08:00
Jason Volk
5a7208729a ircd:Ⓜ️ Add format argument to pretty_msgline(); add text fmt w/ console arg. 2021-01-30 19:20:50 -08:00
Jason Volk
47372dbd73 ircd:Ⓜ️ Improve pretty_msgline(); eliminate small tls buf. 2021-01-30 19:20:45 -08:00
Jason Volk
caf38d076a ircd:Ⓜ️🧾 Simplify receipt freshness decisional. 2021-01-25 22:27:44 -08:00
Jason Volk
744744f88a ircd:Ⓜ️ Query range of messages user is presently engaged in reading. 2021-01-25 00:12:10 -08:00
Jason Volk
2d0a565ede ircd:Ⓜ️ Add viewing(user) for currently viewing room w/ console cmd. 2021-01-25 00:06:19 -08:00
Jason Volk
bc7a2edc45 ircd:Ⓜ️ Fix br3adcrumbs again. (related 8e7c1c3eb2) 2021-01-24 21:42:03 -08:00
Jason Volk
383637ae51 ircd:Ⓜ️:dbs: Add conf items for content / event_json file size. 2021-01-12 13:55:45 -08:00
Jason Volk
165454dd85 ircd:Ⓜ️:acquire: Use backfill for potentially softfailed state. 2021-01-12 13:55:45 -08:00
Jason Volk
ee23dae92a ircd:Ⓜ️:init::backfill: More aggressive pool size default. 2021-01-12 13:55:45 -08:00
Jason Volk
9740b15fb9 ircd:Ⓜ️:vm: Additional emption related fault codes. 2021-01-12 13:55:45 -08:00
Jason Volk
b47171f8f9 ircd:Ⓜ️:dbs: Increase content column cache default. 2021-01-08 01:37:45 -08:00
Jason Volk
0f8647dfa6 ircd:Ⓜ️:init::backfill: Fix invalid termination of finished context. 2021-01-08 01:37:45 -08:00
Jason Volk
a49fa17c7e modules: Implement s2s unstable 22.3 m.signing_key_update handler. 2021-01-04 13:17:30 -08:00
Jason Volk
d6e01f5a43 ircd:Ⓜ️ Add signing_key_update schema. 2021-01-04 13:17:30 -08:00
Jason Volk
c799f378d1 ircd:Ⓜ️ Structure for CrossSignKey. 2021-01-04 08:47:21 -08:00
Jason Volk
3e2e876ebe ircd:Ⓜ️:gossip: Fix attempt hash; msb on remote. 2020-12-28 19:41:40 -08:00
Jason Volk
ff0a6c2ce7 ircd:Ⓜ️:user::mitsein: Replace string w/ hash for seen state. 2020-12-28 19:33:14 -08:00
Jason Volk
30d7c11db7 ircd:Ⓜ️:presence: Add prefetch() to interface. 2020-12-28 19:33:14 -08:00
Jason Volk
5b4065048e ircd:Ⓜ️:sync: Include device_id in synchron loghead output. 2020-12-28 19:33:14 -08:00
Jason Volk
85dd862760 ircd:Ⓜ️:room::content: Add larger prefetch ring. 2020-12-28 02:35:18 -08:00
Jason Volk
07733e6682 ircd:Ⓜ️:event::append: Use consistent quoting around ids in format strings. 2020-12-28 02:01:26 -08:00
Jason Volk
67448469ae ircd:Ⓜ️:event::append: Add visibility query support w/ option. 2020-12-28 02:01:26 -08:00
Jason Volk
9efe14ba6d ircd:Ⓜ️:event::append: Support event_filter in options; minor reorg. 2020-12-28 02:01:26 -08:00
Jason Volk
e51ddb1ee6 ircd:Ⓜ️:filter: Modernize some match conditions; use non-throwing queries. 2020-12-28 02:01:26 -08:00
Jason Volk
a5d3cfbfa6 ircd:Ⓜ️:typing: Drop typing events for rooms w/o local joined user. 2020-12-26 11:55:01 -08:00
Jason Volk
0c600eba94 ircd:Ⓜ️:vm: Fix cases incorrectly removing signatures prior to verify stage. 2020-12-22 18:40:30 -08:00
Jason Volk
eb18ae9daf ircd:Ⓜ️ Add argument to toggle sigs in m::essential(). 2020-12-22 18:40:30 -08:00
Jason Volk
92b960730a ircd:Ⓜ️:sync: Undress since token for clear-cache+reload in R!ot. (matrix-org/matrix-doc/#2855) 2020-12-22 18:40:30 -08:00
Jason Volk
bd90d02cb9 ircd:Ⓜ️:homeserver: Enable prefetch of references during bootstrap for now. 2020-12-21 01:19:33 -08:00