0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-05 21:38:54 +01:00
Commit graph

4264 commits

Author SHA1 Message Date
Jason Volk
3f418bf1ed ircd::server: Add a request log. 2019-07-25 23:12:18 -07:00
Jason Volk
6d4e17a77c modules/media: Hold a reference to magick module. 2019-07-25 21:43:05 -07:00
Jason Volk
3121dc30df modules: Move magick out of media; hold instance from media. 2019-07-25 21:02:48 -07:00
Jason Volk
7b8dfb88f4 ircd:Ⓜ️:event::auth: Transpose several rules; various reorg. 2019-07-25 20:02:29 -07:00
Jason Volk
c5ad1141d0 ircd:Ⓜ️🆔 Increase generated room_id characters to 18.
ircd:Ⓜ️🆔 Decrease generated device_id characters to 10; alnum.
2019-07-25 18:57:50 -07:00
Jason Volk
4ffab63da7 ircd:Ⓜ️ Tweak pretty_oneline(event) field order. 2019-07-25 17:27:45 -07:00
Jason Volk
9a5df1ae9c ircd:Ⓜ️ Add additional format selection for pretty_oneline(event). 2019-07-25 15:57:04 -07:00
Jason Volk
58dd728f49 ircd::client: Record all stuck clients in dwarning on shutdown.
ircd::server: Record all stuck peers in dwarning on shutdown.
2019-07-25 15:28:40 -07:00
Jason Volk
ddcce0ef2b ircd:Ⓜ️:event: Document class member related. 2019-07-25 14:29:07 -07:00
Jason Volk
cd3d2c1c8c ircd::server: Increase wait loop timer here. 2019-07-24 13:25:23 -07:00
Jason Volk
ea1cd3f73d ircd::ctx: Make spawn() a ctx member function; add comments/doc. 2019-07-24 13:21:48 -07:00
Jason Volk
eb3b4d82fb ircd:Ⓜ️:room::members: Simplify and improve interface; callsites. 2019-07-23 19:50:13 -07:00
Jason Volk
7dcd3fdcd8 ircd: Improve log format consistency. 2019-07-23 17:31:16 -07:00
Jason Volk
e9c42b7c63 ircd::db::env: Add debuglog msg for job queued.
ircd::db::env: Create a dedicated logger.

ircd::db::env: Improve debuglog msgs.
2019-07-23 17:10:10 -07:00
Jason Volk
4dc114bf94 ircd::db::env: Remove the background task delay dock here. 2019-07-23 16:42:12 -07:00
Jason Volk
bde9e16e5c ircd::ctx: Inline cur_slice_cycles().
modules/media/magick: Use this_ctx::cycles_here().

ircd::ctx: Improve prof::cycles API related.
2019-07-23 16:40:29 -07:00
Jason Volk
df11d9bec6 ircd:Ⓜ️:room: Reorient join bootstrap definitions.
ircd:Ⓜ️:room::bootstrap: Improve interface / various.
2019-07-23 16:40:29 -07:00
Jason Volk
cc9ce9c8a5 ircd:Ⓜ️:room: Move timeline definitions to module. 2019-07-22 14:30:27 -07:00
Jason Volk
53e7fe3fef ircd:Ⓜ️:fetch: Remove cruft. 2019-07-22 14:18:13 -07:00
Jason Volk
b17b508c2a ircd:Ⓜ️:room::origins: Add interface to count room servers online/error. 2019-07-21 19:08:40 -07:00
Jason Volk
6c9dbdbef5 ircd::ctx: Add queued(ctx) state to interface. 2019-07-21 18:07:26 -07:00
Jason Volk
e36a3035a4 ircd::ctx: Use a pseudo ios::descriptor to include contexts in ircd::ios. 2019-07-21 17:55:58 -07:00
Jason Volk
d18a1acf43 ircd:Ⓜ️:event::fetch: Remove unnecessary event_id query in seek() stack. 2019-07-21 17:04:16 -07:00
Jason Volk
b7b329a130 ircd:Ⓜ️:event::fetch: Fix condition here. 2019-07-21 17:04:16 -07:00
Jason Volk
62f861c54a ircd::db::database::env: Add missing fdno in log output.
ircd::db: Add missing validator in debug.
2019-07-21 16:41:05 -07:00
Jason Volk
5377d46ec5 ircd:Ⓜ️ Minor reorder pretty(event) top_keys. 2019-07-21 16:07:12 -07:00
Jason Volk
471c08a41e ircd::ctx: Split exception_handler w/ cxxabi header requirement. 2019-07-21 15:29:16 -07:00
Jason Volk
70ec2a37c7 ircd::fs: Use system_error factory. 2019-07-20 20:19:40 -07:00
Jason Volk
bcec03ce1a ircd:Ⓜ️:vm::eval: Add find_pdu() to interface. 2019-07-20 18:42:15 -07:00
Jason Volk
3051e6da83 ircd: Isolate inclusion of sys/time.h. 2019-07-20 18:42:15 -07:00
Jason Volk
3100e5ea34 modules/m_room_aliases: Move auth branch to module handler. 2019-07-20 18:42:15 -07:00
Jason Volk
e1356fb50d ircd:Ⓜ️:event::auth: Add hookdata::find() to improve initialization. 2019-07-20 18:42:15 -07:00
Jason Volk
9e2e20f3e8 ircd:Ⓜ️:event::auth: Preliminary auth hook. 2019-07-20 18:42:15 -07:00
Jason Volk
bee0d695de ircd:Ⓜ️:fed: Add more make_join ver query parameters. 2019-07-20 18:42:15 -07:00
Jason Volk
95001450c5 ircd::db: Move some internal headers out of the installed includedir. 2019-07-20 18:42:15 -07:00
Jason Volk
b6903bf643 Wrap clang diagnostics in #ifdef to prevent GCC warning. 2019-07-20 18:42:15 -07:00
Jason Volk
2f2bc867fb ircd: Improve various context names for consistency. 2019-07-20 18:42:15 -07:00
Jason Volk
e4372253a8 ircd::ctx::ole: Use a ctx::latch for the kick. 2019-07-20 14:49:52 -07:00
Jason Volk
feaa05157e ircd::server: Simplify and conform loghead format. 2019-07-19 20:35:42 -07:00
Jason Volk
0704625401 ircd::log: Simplify log class member interface. 2019-07-19 17:15:47 -07:00
Jason Volk
3185653ce0 ircd::net: Appease clang-7 here. 2019-07-19 17:14:45 -07:00
Jason Volk
431eff54d9 ircd: Clang-7 related misc fixes. 2019-07-19 16:41:31 -07:00
Jason Volk
fd504be82c ircd: De-inline the now()/time() samplers; minor cleanup. 2019-07-19 16:13:11 -07:00
Jason Volk
c9745570fc ircd:Ⓜ️ Add internal(room) to interface. 2019-07-19 14:27:57 -07:00
Jason Volk
e57561e8c1 ircd:Ⓜ️ Add type(room) to interface. 2019-07-19 14:27:57 -07:00
Jason Volk
bdc88e6c7e imrcd:Ⓜ️:room::members: Add empty() to interface. 2019-07-19 14:27:57 -07:00
Jason Volk
4de54ff00d ircd:Ⓜ️:room::members: Improve present state condition test. 2019-07-19 13:55:06 -07:00
Jason Volk
5d1e558c0e ircd::net: Gracefully handle unrecognized SNI. 2019-07-18 18:46:36 -07:00
Jason Volk
ceb9ca3db7 ircd::net: Improve log consistency. 2019-07-18 18:46:36 -07:00
Jason Volk
83c21ea523 ircd:Ⓜ️:error: Fix content access. 2019-07-18 15:09:07 -07:00
Jason Volk
89b047f68c ircd:Ⓜ️ Tweak module order. 2019-07-18 15:09:06 -07:00
Jason Volk
ca21a760a7 modules: Rename net_listener back to m_listen. 2019-07-18 15:09:04 -07:00
Jason Volk
d4438bbb22 ircd::db::env: Use our own impl of NowMicros(). 2019-07-17 19:12:13 -07:00
Jason Volk
ad1940d614 ircd::db::env: Add NowNanos() override. 2019-07-17 19:11:43 -07:00
Jason Volk
3958757dbb ircd:Ⓜ️:dbs: Improve debug logging on horizon resolve sequence. 2019-07-17 16:19:28 -07:00
Jason Volk
9c94c6ac8f ircd:Ⓜ️ Move user::events definitions to module.
ircd:Ⓜ️ Move user::rooms definitions to module.
2019-07-17 15:05:34 -07:00
Jason Volk
ad834bfc5b ircd:Ⓜ️:vm: Reorganize eval/vm::inject for room version differences; add comment. 2019-07-17 14:53:13 -07:00
Jason Volk
e5c1a4acef ircd:Ⓜ️ Reorder modules. 2019-07-16 16:39:05 -07:00
Jason Volk
4b53217939 ircd::db: Improve readability. 2019-07-16 16:06:40 -07:00
Jason Volk
e0e9e09e67 ircd:Ⓜ️ Make append() return and propagate boolean. 2019-07-16 15:26:15 -07:00
Jason Volk
ef1f6f2642 ircd:Ⓜ️ Move event/append header. 2019-07-16 12:39:16 -07:00
Jason Volk
ad7c6980ac ircd::log: Tweak log format. 2019-07-16 12:16:43 -07:00
Jason Volk
1c00399f66 ircd:Ⓜ️ Add interface to test if event is redacted. 2019-07-16 10:48:35 -07:00
Jason Volk
13830061a3 ircd:Ⓜ️:event::refs: Add overload to check if ref type exists. 2019-07-16 10:27:53 -07:00
Jason Volk
c266b8a72e ircd:Ⓜ️ Add client_sync_rooms_summary to mods list. 2019-07-16 09:32:06 -07:00
Jason Volk
b8b711c658 ircd::http: Fix query for_each return value. 2019-07-15 17:52:01 -07:00
Jason Volk
8c7623ff99 ircd::log: Show the ctx::epoch() in log output; tweak format. 2019-07-15 17:20:47 -07:00
Jason Volk
2bcfe14822 ircd::ios: Add a handler epoch counter. 2019-07-15 17:20:47 -07:00
Jason Volk
ebbc5a5be0 ircd::ios: Apply noexcept to handler border functions. 2019-07-15 17:20:47 -07:00
Jason Volk
4d8d2a4dd7 ircd::json: Improve and inline value comparison operators. 2019-07-15 11:06:01 -07:00
Jason Volk
0344a12b40 ircd::json: Inline value constructors. 2019-07-15 11:06:01 -07:00
Jason Volk
d61850ecf6 modules/m_user: Simplify linkage. #83 2019-07-15 11:06:01 -07:00
Jason Volk
05711cf5d6 modules: Split user::highlight module. 2019-07-15 11:06:01 -07:00
Jason Volk
1c01b21720 ircd::util: Add unit and deinline various date/time util. 2019-07-15 09:47:34 -07:00
Jason Volk
0d375cc79c ircd:Ⓜ️:user::profile: Fix rogue definitions. 2019-07-14 19:50:19 -07:00
Jason Volk
e715c135af ircd:Ⓜ️ Split m::user::profile from client handler. 2019-07-14 19:35:28 -07:00
Jason Volk
8664ed0f6a ircd:Ⓜ️ Tweak module order. 2019-07-14 19:35:28 -07:00
Jason Volk
58aad0194b ircd:Ⓜ️ Move bootstrap to module.
modules/m_init_bootstrap: Trigger bootstrap via import.
2019-07-14 16:07:44 -07:00
Jason Volk
6a2c5f2047 ircd:Ⓜ️:event::auth: Update version requirement. 2019-07-14 15:03:54 -07:00
Jason Volk
ab8667608b ircd:Ⓜ️ panic on bootstrap error. 2019-07-14 15:03:54 -07:00
Jason Volk
91af1a17fd ircd::server: Add timestamp of when link's socket was estab. 2019-07-14 12:19:31 -07:00
Jason Volk
fe0bffae98 ircd::server: Tweak assertions. 2019-07-14 11:54:13 -07:00
Jason Volk
43f8bee68a ircd: Fix mislabeled condition. 2019-07-14 11:47:58 -07:00
Jason Volk
53a9b67414 ircd:Ⓜ️:event::auth: Update redacts usage of event_id host. 2019-07-13 23:20:03 -07:00
Jason Volk
b9b3f9f00e ircd:Ⓜ️ Fix my(event) conditions regression. 2019-07-13 23:20:03 -07:00
Jason Volk
91b0027751 ircd:Ⓜ️🆔 Assert my(id) call is useful. 2019-07-13 23:20:03 -07:00
Jason Volk
b5b32e15da ircd:Ⓜ️:room::members: Fix key regressions in room::members queries. 2019-07-13 19:28:48 -07:00
Jason Volk
ccfb3cd688 ircd::mods: Output linked module list to log on stuck module. 2019-07-13 19:28:48 -07:00
Jason Volk
9343d0ea2b ircd::mods::ldso: Add ifdefs for weak function undefining on other platforms. 2019-07-13 19:28:48 -07:00
Jason Volk
84d1749f4d ircd::mods: Improve/reorg internal interface related. 2019-07-13 19:28:03 -07:00
Jason Volk
55a70915a6 ircd:Ⓜ️ Fix module orderings. 2019-07-13 19:28:03 -07:00
Jason Volk
df8fd36fde ircd:Ⓜ️:user: Simplify user::room_tags impl w/ modern linkage.
ircd:Ⓜ️:user: Simplify user::room_account_data impl w/ modern linkage.

ircd:Ⓜ️:user: Modernize user::profile impl linkage.

ircd:Ⓜ️:user: Modernize user::account_data impl linkage.

ircd:Ⓜ️:user: Simplify user::ignores impl w/ modern linkage.
2019-07-13 18:15:27 -07:00
Jason Volk
6e97a72c50 ircd::ctx::ole: Minor interface reorg. 2019-07-13 18:15:27 -07:00
Jason Volk
d0cc5b020b ircd::fs: Minor reorg of fadvise related. 2019-07-12 19:29:51 -07:00
Jason Volk
212e4abb55 ircd:Ⓜ️:fed: Add /v2/invite request support. 2019-07-12 19:29:51 -07:00
Jason Volk
ce55859fb2 ircd:Ⓜ️ Rename v1 to fed. 2019-07-12 19:29:51 -07:00
Jason Volk
9e10ddcc61 ircd:Ⓜ️:event: Improve construction event_id related conditions. 2019-07-12 19:29:50 -07:00
Jason Volk
2d7a914eb2 ircd:Ⓜ️:event: Fix detection on hashing constructor. 2019-07-11 19:22:35 -07:00
Jason Volk
d7ac655220 ircd:Ⓜ️:pretty: Simplify all space literals. 2019-07-11 18:58:17 -07:00
Jason Volk
e39adf9942 ircd:Ⓜ️ Calculate hash on pretty_online(event) if missing. 2019-07-11 18:58:17 -07:00
Jason Volk
4947ef10f5 ircd:Ⓜ️:room: Add missing linear event::idx get(). 2019-07-11 18:58:17 -07:00
Jason Volk
e4a036f18a ircd:Ⓜ️:error: Improve the what() format on m::error. 2019-07-11 18:58:16 -07:00
Jason Volk
c4e5d06d91 ircd:Ⓜ️:error: Improve construction stack. 2019-07-11 17:22:16 -07:00
Jason Volk
628766f6fa ircd:Ⓜ️:vm::eval: Remove the size-one array branch. 2019-07-11 16:57:41 -07:00
Jason Volk
9629028552 ircd:Ⓜ️ Assert non-empty event_id for the throwing index(event_id). 2019-07-11 16:57:41 -07:00
Jason Volk
10fcd5ee21 ircd:Ⓜ️:room::auth: Fix make_refs composition format error. 2019-07-11 16:57:41 -07:00
Jason Volk
ae071552fb ircd::ctx::ole: Add options structure; minor cleanup. 2019-07-11 15:51:09 -07:00
Jason Volk
d19e960c58 ircd: Split ctx::ole to definition file. 2019-07-11 15:51:09 -07:00
Jason Volk
be0fad506e ircd::ctx: Move macro condition to internal header. 2019-07-11 15:51:09 -07:00
Jason Volk
de94e95422 ircd: Split out overgrown components from stringops.h 2019-07-11 15:51:09 -07:00
Jason Volk
d53744b3f8 ircd: Rename gmatch/gequals. 2019-07-11 15:51:09 -07:00
Jason Volk
0f4d1e2869 ircd::net::socket: Convert totals counters to stats::items. 2019-07-11 15:51:09 -07:00
Jason Volk
13d733e89d ircd::stats: Allow a default value to be passed in the feature. 2019-07-11 15:51:09 -07:00
Jason Volk
1b65cc36c8 modules/console: Fix unwrapped prev event iteration.
ircd:Ⓜ️:v1: Fix unwrapped prev event reference.
2019-07-10 07:39:37 -07:00
Jason Volk
114b997088 ircd:Ⓜ️:v1::make_join: Advertise versions in query params. 2019-07-10 07:31:03 -07:00
Jason Volk
ae3980dd00 ircd:Ⓜ️ Add the event_id to the JSON in append(event) to client. 2019-07-10 07:24:09 -07:00
Jason Volk
e54d880e6c ircd:Ⓜ️:room:head: Update make_refs for bi-format compat. 2019-07-10 07:15:26 -07:00
Jason Volk
9af1e5af4e ircd:Ⓜ️ Fix pretty(event) format when lacking a digest. 2019-07-10 07:00:37 -07:00
Jason Volk
4958170e4b ircd:Ⓜ️:room: Fix version property name. 2019-07-10 06:52:56 -07:00
Jason Volk
03344ab0e1 ircd:Ⓜ️:event::fetch: Fix event_id related condition. 2019-07-10 06:52:56 -07:00
Jason Volk
4bbe07c95c ircd:Ⓜ️:dbs: Fix unwrapped prev_events iteration in indexer. 2019-07-10 06:52:56 -07:00
Jason Volk
735d1980ff ircd:Ⓜ️🆔 Fix event::version gauge. 2019-07-10 06:52:56 -07:00
Jason Volk
329972ed01 ircd:Ⓜ️:event: Update the make_id() suite. 2019-07-10 03:50:37 -07:00
Jason Volk
6f4a4f351c ircd:Ⓜ️🆔 Allow empty host in rewrite constructor. 2019-07-10 03:50:37 -07:00
Jason Volk
558428d503 ircd:Ⓜ️ Set default version value on not-found to "1". 2019-07-10 03:50:37 -07:00
Jason Volk
b7fc4710eb ircd:Ⓜ️:event::conforms: Add event_id hash check to static conformity checks. 2019-07-10 03:50:37 -07:00
Jason Volk
b6f277a975 Update various event construction sites. 2019-07-10 03:50:37 -07:00
Jason Volk
43d66420cd Update incompatible uses of event_id. 2019-07-10 03:50:37 -07:00
Jason Volk
639b132250 ircd:Ⓜ️ Add a check_id(event) suite. 2019-07-10 02:12:16 -07:00
Jason Volk
90bf8f03b8 ircd:Ⓜ️:dbs: Augment the property->column direct indexer when missing event_id. 2019-07-10 00:01:25 -07:00
Jason Volk
0a210544b3 ircd:Ⓜ️:event::conforms: Remove MISTMATCH_ORIGIN_EVENT_ID code. 2019-07-09 23:46:24 -07:00
Jason Volk
2755cfe71b ircd:Ⓜ️🆔 Improve the validation interface / stack. 2019-07-09 02:33:27 -07:00
Jason Volk
ab25346534 ircd::ctx: Tweak exception_handler. 2019-07-09 02:33:27 -07:00
Jason Volk
719a965d9f ircd:Ⓜ️:event: Remove prev_state from top level. 2019-07-09 02:33:27 -07:00
Jason Volk
fc8048dc74 ircd::event: Remove membership from top level. 2019-07-09 02:03:03 -07:00
Jason Volk
e0655229c5 ircd::room::auth: Improve make_refs and cleanup interface related. 2019-07-09 02:03:03 -07:00
Jason Volk
aa78f6f85c ircd:Ⓜ️:event::conforms: Update event_id related conditions. 2019-07-08 18:57:45 -07:00
Jason Volk
93b82445d9 ircd:Ⓜ️:fetch: Fix initialization.
ircd:Ⓜ️:event::fetch: Fix member statekeeping.
2019-07-08 06:03:20 -07:00
Jason Volk
015cbe53b1 ircd::net::socket: Add static counters for totals. 2019-07-08 06:03:20 -07:00
Jason Volk
94148ec80a ircd::json::stack: Use character appends where possible. 2019-07-08 06:03:20 -07:00
Jason Volk
f02b51d647 ircd::mods: Avoid npd warning from assertions. 2019-07-08 06:03:20 -07:00
Jason Volk
7dc5d30405 ircd:Ⓜ️:sync: Move data ctor to module. 2019-07-08 06:03:20 -07:00
Jason Volk
11dd47a8aa ircd:Ⓜ️:sync: Add pointer to struct args in struct data. 2019-07-08 06:03:20 -07:00
Jason Volk
7f102e7f8c ircd:Ⓜ️:room: Use scope_restore here. 2019-07-07 03:59:51 -07:00
Jason Volk
cf853cf9ad ircd:Ⓜ️:event: Condition for sentinel return value. 2019-07-07 03:59:51 -07:00
Jason Volk
3816d4104a ircd:Ⓜ️:sync: Fix loghead/console formatting. 2019-07-06 22:27:51 -07:00
Jason Volk
49264bd13b ircd:Ⓜ️:sync: Add sync item children counter. 2019-07-06 22:25:16 -07:00
Jason Volk
18f07b6378 ircd:Ⓜ️:sync: Move definitions to module.
ircd:Ⓜ️:sync: Give sync::data an instance_list.
2019-07-06 22:25:12 -07:00
Jason Volk
13e87b00a1 ircd:Ⓜ️:dbs: Use event_id member. 2019-07-05 23:45:00 -07:00
Jason Volk
dc4d13bca6 ircd:Ⓜ️:event::fetch: Add internal buffer for event::id state. 2019-07-05 23:45:00 -07:00