0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-02 16:58:19 +02:00
Commit graph

3573 commits

Author SHA1 Message Date
Jason Volk 2fccad88f2 ircd:Ⓜ️:vm: Tweak debuglog message points; fix missing facilities. 2019-09-16 19:59:03 -07:00
Jason Volk fd5907a99d ircd:Ⓜ️:vm: Evaluate auth against present and relative state in sequence. 2019-09-16 16:33:47 -07:00
Jason Volk c0f4640a74 modules/console: Default to local users for users cmd. 2019-09-16 14:08:29 -07:00
Jason Volk 839ca6f000 modules/federation/make_join: Improve error string for propagation. 2019-09-16 13:39:48 -07:00
Jason Volk 8f4def84f4 modules/client/rooms/invite: Remove unnecessary check. 2019-09-16 13:33:35 -07:00
Jason Volk fc4148d874 ircd:Ⓜ️:room::bootstrap: Relax check; fix error on join after accepting invite. 2019-09-16 13:24:40 -07:00
Jason Volk c29fca7b4d ircd:Ⓜ️:vm: Ensure eval.event_id is assigned on inject. 2019-09-16 13:24:19 -07:00
Jason Volk e73ebfd151 ircd:Ⓜ️:fetch: Throw on loop break to properly set request.eptr and finish(). 2019-09-16 12:38:01 -07:00
Jason Volk c7de8aec82 ircd:Ⓜ️:init::backfill: Only ask the server which provided the unknown head for the event. 2019-09-16 12:30:44 -07:00
Jason Volk a9b86c5594 ircd:Ⓜ️:fetch: Add an attempt_limit option to interface; minor cleanup. 2019-09-16 12:30:36 -07:00
Jason Volk 2d1911a2b1 ircd:Ⓜ️:fetch: Add conf item for backfill limit default. 2019-09-16 12:12:43 -07:00
Jason Volk 49ed79e9df ircd:Ⓜ️:fetch: Rename opts::limit to opts::backfill_limit. 2019-09-16 12:09:30 -07:00
Jason Volk a6efe6986c modules/client/sync/rooms/timeline: Add comment. [skip ci] 2019-09-16 12:06:25 -07:00
Jason Volk 2115bf7cf4 ircd:Ⓜ️:user: Move definitions from modules/client to m_user. 2019-09-16 11:03:45 -07:00
Jason Volk 7fa72e8f39 ircd:Ⓜ️ Move the m::redact() definition out of client/rooms modules. 2019-09-16 10:55:23 -07:00
Jason Volk 3f65055892 modules/client/sync/rooms/state: Employ prev_content elision on some appends. 2019-09-15 20:04:23 -07:00
Jason Volk b4b07debbd ircd:Ⓜ️:event::append: Add option to elide query for state prev_content. 2019-09-15 19:47:03 -07:00
Jason Volk 56e9f5e009 ircd:Ⓜ️:event::append: Only query for ignores for non-self sender; minor cleanup. 2019-09-15 19:36:39 -07:00
Jason Volk da38ffc49c ircd:Ⓜ️:room::bootstrap: Simplify process; remove cruft. 2019-09-15 19:36:39 -07:00
Jason Volk f9c47eee58 ircd:Ⓜ️:room::bootstrap: Reuse any existing join event on bootstrap. 2019-09-15 19:36:39 -07:00
Jason Volk 0f00468bb8 modules/client/sync/rooms/timeline: Add case to linear-sync a backfill of timeline events on join. 2019-09-15 19:36:39 -07:00
Jason Volk ec22842c63 ircd:Ⓜ️:event::append: Fix exclusion of redacts property. 2019-09-15 19:36:39 -07:00
Jason Volk ea33e0326e ircd:Ⓜ️:rooms::summary: Refactor for per-origin result synthesis and learning. 2019-09-15 14:59:36 -07:00
Jason Volk da6fd3e3ab ircd::http: Move version mismatch to unlikely segment.
ircd:Ⓜ️:vm: Reduce branches.

ircd::http: Minor cleanup.
2019-09-14 16:33:14 -07:00
Jason Volk 9319df1a1b ircd:Ⓜ️:rooms::summary: Export state key manip utils to interface. 2019-09-14 16:08:33 -07:00
Jason Volk 1b4693601d modules/console: Add type/sender/state_key to table if available. 2019-09-14 15:49:10 -07:00
Jason Volk 3ac8bd2e60 modules/conf: Bypass update call on init for not-existent items. 2019-09-14 15:30:05 -07:00
Jason Volk 1011e2b9a3 modules/conf: Add conf_updated(event_idx) overload handling errors on event::fetch. 2019-09-14 15:30:05 -07:00
Jason Volk 653fc148d3 ircd:Ⓜ️:fetch: Only check signature for v1 events. 2019-09-14 14:45:19 -07:00
Jason Volk 12d969cdfd ircd:Ⓜ️:fetch: Fix error in signature checker. 2019-09-14 14:18:51 -07:00
Jason Volk deeb731d42 modules/client/search: Update the handler with skeleton structure. 2019-09-14 13:51:24 -07:00
Jason Volk 2238bf1df3 ircd:Ⓜ️:room::bootstrap: Fix make_join eval options. 2019-09-13 18:41:06 -07:00
Jason Volk a2ffebeb06 ircd:Ⓜ️:rooms::summary: Use server name as fetch target. 2019-09-13 18:41:06 -07:00
Jason Volk f8e3030819 modules/client/directory/list: Use local rooms::summary::set() overload. 2019-09-13 18:04:53 -07:00
Jason Volk 9eae6be223 ircd:Ⓜ️:rooms: Add summary iteration based on alias hosts. 2019-09-13 17:48:35 -07:00
Jason Volk e4a95c9928 ird:Ⓜ️:rooms: Remove summary iteration based on room_id.host(). 2019-09-13 17:45:04 -07:00
Jason Volk 4753e7aada ircd:Ⓜ️:rooms: Only test join_rule if room is not summarized in !public. 2019-09-13 17:26:28 -07:00
Jason Volk 4b949e7b01 modules/m_vm_fetch: Fix state fetch condition. 2019-09-13 16:32:26 -07:00
Jason Volk 97881ac976 ircd:Ⓜ️:vm::eval: Fix generation and scope duration of event_id in array eval. 2019-09-13 15:39:06 -07:00
Jason Volk 0c45fb827d ircd:Ⓜ️:vm: Add a specific edu option to vmopts. 2019-09-13 15:26:44 -07:00
Jason Volk bfc493ce64 ircd:Ⓜ️:vm::fetch: Only synchronize state for the parent eval. 2019-09-13 14:17:11 -07:00
Jason Volk 54c29274f2 ircd:Ⓜ️:room::server_acl: Propagate exceptions through check(). 2019-09-13 14:10:27 -07:00
Jason Volk c5d9181d23 modules/console: Display number of pdus completed in vm cmd. 2019-09-13 14:06:08 -07:00
Jason Volk 7867bb6a4f modules/m_room_create: Optimize check. 2019-09-13 13:40:24 -07:00
Jason Volk 1e62b68286 ircd:Ⓜ️:vm: Move conform hook to pdu branch. 2019-09-13 13:38:05 -07:00
Jason Volk 4e0db779f7 modules/federation/send: Tweak pdu eval opts. 2019-09-13 13:32:20 -07:00
Jason Volk e3d0eb34fe ircd:Ⓜ️:vm::fetch: Propagate vm::opts to any recursive eval. 2019-09-13 13:28:23 -07:00
Jason Volk e71e93fe5f modules/console: Improve client cmd output format. 2019-09-13 12:44:59 -07:00
Jason Volk 2aa218c366 ircd::net::dns::cache: Fix callback loop assumptions.
ircd::net::dns::resolver: Fix the timeout worker iteration approach.
2019-09-12 20:11:48 -07:00
Jason Volk 5fa545f879 modules/m_keys: Minor cleanup. 2019-09-12 20:11:48 -07:00
Jason Volk 1bba6f12a6 modules/console: Fix conditions for done/pipe flag in output. 2019-09-12 20:11:48 -07:00
Jason Volk 5c895ab65f modules/console: Improve vm cmd output. 2019-09-12 20:11:48 -07:00
Jason Volk a60750ab86 modules/console: Add ios latency diagnostic. 2019-09-12 12:37:49 -07:00
Jason Volk d3039669f5 ircd::net::dns::cache: Add equality operations for waiter. 2019-09-12 11:57:42 -07:00
Jason Volk 3157aa5405 ircd::net::dns::cache:: Deinline waiter ctor. 2019-09-12 11:57:42 -07:00
Jason Volk 9c68d01d86 ircd:Ⓜ️:room: Remove cruft. 2019-09-12 11:57:42 -07:00
Jason Volk 5c89a2b030 modules/console: Format help cmd list into columns. 2019-09-12 09:57:06 -07:00
Jason Volk 80f8ae9547 ircd::net::dns: Add assertions; expect callback; fix error. 2019-09-11 20:11:09 -07:00
Jason Volk ba3d82abe7 ircd::server: Use interface function to query canceled. 2019-09-11 18:06:34 -07:00
Jason Volk c7168d3016 ircd::net::dns::resolver: Increase worker stack sizes. 2019-09-11 15:36:46 -07:00
Jason Volk 2527965c91 ircd:Ⓜ️:vm: Consolidate duplicate eval condition branches. 2019-09-11 13:12:36 -07:00
Jason Volk 83c58cf42e ircd::net::dns: Deduplicate requests at resolve() entry. 2019-09-11 12:17:27 -07:00
Jason Volk 47204888d6 ircd::net::dns: End catch block before invoking callbacks. 2019-09-11 11:50:36 -07:00
Jason Volk fe4c7bb12e modules/console: Output peer flags in listing. 2019-09-11 11:40:24 -07:00
Jason Volk f36a743471 ircd:Ⓜ️:vm: Add branch expectations for execute path. 2019-09-11 11:33:53 -07:00
Jason Volk eee2c9481f modules/console: Add local members counts to room top. 2019-09-11 10:55:19 -07:00
Jason Volk 0241f2b9a1 ircd:Ⓜ️:room::members: Add host argument to interface stack for more efficient queries. 2019-09-11 10:53:48 -07:00
Jason Volk 090fac34bc modules/console: Combine vm/eval cmds; improve output. 2019-09-11 09:49:12 -07:00
Jason Volk fcb70510ab ircd:Ⓜ️:init::backfill: Increase default concurrent room conf. 2019-09-11 09:16:54 -07:00
Jason Volk 7ca872006e modules/console: Use better status/flags in table output. 2019-09-11 09:16:54 -07:00
Jason Volk 08b3b6cddc ircd:Ⓜ️:fetch: Add run::level check in start(). 2019-09-10 21:39:00 -07:00
Jason Volk 6cbef6b000 modules/console: Additional columns for peer request diagnostic. 2019-09-10 21:39:00 -07:00
Jason Volk da695998ff ircd::net::dns::cache: Unconditional broadcast after invoking waiting callbacks. 2019-09-10 21:39:00 -07:00
Jason Volk ec4c6c46ac ircd:Ⓜ️:vm: Partial revert of a35328f38; remove mutex; use sequencing. 2019-09-10 14:45:54 -07:00
Jason Volk ee3dcf5075 ircd:Ⓜ️:init::backfill: Additional worker terminator based on runlevel change. 2019-09-10 14:30:33 -07:00
Jason Volk 95a8623a51 ircd::net::dns::cache: Delete copy/move semantics for internal buffers. 2019-09-10 14:02:43 -07:00
Jason Volk 09369b19ff ircd:Ⓜ️:init::backfill: Fix stale comment. 2019-09-10 14:02:43 -07:00
Jason Volk 83332a724b ircd:Ⓜ️:init::backfill: Improve graceful termination propagation and handling. 2019-09-10 14:02:43 -07:00
Jason Volk b28c5e0573 ircd::net::dns::cache: Add a mutex around the waiters list manipulations. 2019-09-10 14:02:43 -07:00
Jason Volk b6149b429e ircd::ctx::dock: Add noexcept to interface observers.
ircd::ctx: Propagate noexcept on hot leafs;

ircd::ctx::list: Deinline size().
2019-09-10 11:06:11 -07:00
Jason Volk 1c5343be79 modules/m_room_power_levels: Ignore invalid user mxids in array. 2019-09-09 19:59:59 -07:00
Jason Volk 83376d8ed4 modules/console: Add standalone redact cmd. 2019-09-09 19:34:27 -07:00
Jason Volk 7a6c872870 modules/console: Add vg cmd. 2019-09-09 18:04:42 -07:00
Jason Volk ebb2f21d61 ircd:Ⓜ️:vm: Add stack usage assertion at eval entry. 2019-09-09 12:53:34 -07:00
Jason Volk db8e28f585 ircd:Ⓜ️:vm: Notify the sequence::dock under fewer conditions. 2019-09-09 12:17:20 -07:00
Jason Volk 6ecca7fcb7 modules/federation/send: Increase coarse timeout for now. 2019-09-09 12:12:42 -07:00
Jason Volk 5b088551ae modules/client/sync: Minor cleanup;
modules/client/sync: Consolidate header.
2019-09-09 12:08:07 -07:00
Jason Volk 3e694d50cf ircd:Ⓜ️:init::backfill: More checks for interruption of loops. 2019-09-09 11:34:18 -07:00
Jason Volk 0862263204 ircd:Ⓜ️:vm: Notify all for sequence::dock on unwind. 2019-09-08 19:58:58 -07:00
Jason Volk a35328f384 ircd:Ⓜ️:vm: Add inner lock around write commitment. 2019-09-08 19:58:58 -07:00
Jason Volk f942c3ffc6 modules/federation/send: Allow interrupt propagation for eval. 2019-09-08 18:22:05 -07:00
Jason Volk b3fc7bdb35 modules/m_init_backfill: Reference a static dummy instance for when_any(). 2019-09-08 18:22:05 -07:00
Jason Volk 0bc027ebab modules/net_dns_resolver: Lock tags mutex for cancel_all() on termination; add assertion. 2019-09-08 18:22:05 -07:00
Jason Volk 3e1be63a49 ircd:Ⓜ️:init::backfill: Fix non-volatile reference to result involving extern conf item. 2019-09-08 18:22:05 -07:00
Jason Volk af1d6e20cd modules/m_room_events: Fix export attribute. 2019-09-08 15:33:56 -07:00
Jason Volk e2f2120739 ircd:Ⓜ️:init::backfill: Disable the rooms count estimate at start. 2019-09-07 22:11:18 -07:00
Jason Volk 49752c3663 ircd:Ⓜ️:rooms: Reorder proffer conditions. 2019-09-07 22:03:02 -07:00
Jason Volk 82ef916256 ircd:Ⓜ️:events: Add rebuilder for type/sender meta columns. 2019-09-07 20:35:27 -07:00
Jason Volk 2739696e8f ircd:Ⓜ️:rooms: Add options construction from string; simplify. 2019-09-07 20:05:48 -07:00
Jason Volk 3343585556 modules/console: Add local_only() related information to room top. 2019-09-07 19:29:24 -07:00
Jason Volk e66bb73c4c ircd:Ⓜ️:init::backfill: Clarify log message; rename function. 2019-09-07 19:23:13 -07:00
Jason Volk 29f8309c10 modules/client/rooms/receipt: Use matrix-org/matrix-doc/2285 m.hidden tag for server-side ignores. 2019-09-07 18:42:37 -07:00
Jason Volk 71027c9383 ircd:Ⓜ️:init::backfill: Only backfill rooms with a locally joined user. 2019-09-07 16:56:17 -07:00
Jason Volk 415491b9b6 ircd:Ⓜ️:rooms: Improve options interface for meta-characteristics. 2019-09-07 16:56:17 -07:00
Jason Volk 7c01d9e77a ircd:Ⓜ️:fetch: Tweak log message format. 2019-09-07 15:32:37 -07:00
Jason Volk 5232da8ea4 ircd:Ⓜ️:init::backfill: Improve infolog msgs; add comments; minor cleanup. 2019-09-07 15:22:12 -07:00
Jason Volk f092da733c ircd:Ⓜ️:room::events: Make a signed integer comparison here. 2019-09-07 14:53:12 -07:00
Jason Volk 9e5a670b95 modules/console: Move crt to net listen crt.
modules/console: Move typing to user typing.

modules/console: Remove cruft.
2019-09-07 13:50:25 -07:00
Jason Volk 592181a09f modules/net_dns: Ensure placement new pos is a copy of the pointer before inc. 2019-09-07 13:22:36 -07:00
Jason Volk 208c081a62 modules/console: Fix room state space rebuild parameters. 2019-09-06 19:19:06 -07:00
Jason Volk d3421a8985 modules/console: Add more filtration arguments to peer list cmd.
modules/console: Increase table widths; improve peer request cmd.
2019-09-06 18:37:56 -07:00
Jason Volk 5eb3c7830f ircd:Ⓜ️:init::backfill: Concurrent initial backfill workers. 2019-09-06 16:31:41 -07:00
Jason Volk 5972f65cfb ircd:Ⓜ️:init::backfill: Skip backspill off prev events below the viewport depth. 2019-09-06 16:03:35 -07:00
Jason Volk deef0777e1 ircd:Ⓜ️:init::backfill: Fetch recent missing events after initial headfill. 2019-09-06 15:50:58 -07:00
Jason Volk d164c41049 ircd:Ⓜ️:room::events: Increase default. 2019-09-06 15:03:29 -07:00
Jason Volk 3e4918062d ircd:Ⓜ️:init::backfill: Add interruption checks for clean breaks. 2019-09-06 14:53:16 -07:00
Jason Volk 1afa0daf3f modules/m_vm_fetch: Preliminary state acquire hook. 2019-09-06 14:33:35 -07:00
Jason Volk 0bbc45e634 modules/m_vm_fetch: Fix error in debuglog msg. 2019-09-06 14:33:35 -07:00
Jason Volk e842f6c383 ircd:Ⓜ️🧾 Implement matrix-org/matrix-doc#2285 Hidden read receipts. 2019-09-06 12:18:29 -07:00
Jason Volk 6a59036f4e ircd:Ⓜ️🧾 Reorg/rename interface; simplify impl; add options argument.
ircd:Ⓜ️🧾 Remove central linkage cruft for interface.
2019-09-06 11:57:02 -07:00
Jason Volk 7d0c44eb3c modules/m_receipt: Add comments/docs on flow. 2019-09-06 10:56:49 -07:00
Jason Volk 91044cf1f0 modules/m_room_join: Remove duplicate join event check until content checked. 2019-09-05 23:25:19 -07:00
Jason Volk 425aa83900 ircd:Ⓜ️:rooms: Add options for user_id / room_alias related. 2019-09-05 21:36:16 -07:00
Jason Volk 652a866a0e modules/client/publicrooms: Improve UX for partial alias search term inputs. 2019-09-05 21:36:16 -07:00
Jason Volk c006190655 ircd:Ⓜ️:rooms: Allow for full state iteration without server state_key. 2019-09-05 21:36:16 -07:00
Jason Volk 31b67dc646 ircd:Ⓜ️:rooms: Add proffer rule for partial alias search terms. 2019-09-05 21:36:16 -07:00
Jason Volk b0e60fc3fc modules/m_keys: Fix feds::keys result interpretation. 2019-09-05 21:36:16 -07:00
Jason Volk 51c6620e2c modules/m_vm_fetch: Prevent recursive backfill out of handler; remove viewport condition. 2019-09-05 21:36:16 -07:00
Jason Volk dfdee1eac9 ircd:Ⓜ️ Consolidate viewport calculation data sources; signed integer conf item. 2019-09-05 21:36:16 -07:00
Jason Volk 9425f26321 modules/m_room_bootstrap: Re-broadcast join event after more servers discovered. 2019-09-05 21:36:16 -07:00
Jason Volk 6300b5a9fb modules/m_vm_fetch: Split and reorg handler stack; add conf items. 2019-09-05 21:36:16 -07:00
Jason Volk 6831f195aa ircd:Ⓜ️:room::events: Add viewport metric concept; conf item. 2019-09-05 18:10:44 -07:00
Jason Volk f67eafd078 ircd:Ⓜ️:vm::fetch: Remove/reorg stale fetch related options. 2019-09-05 18:10:44 -07:00
Jason Volk 5fddfd5366 modules/m_vm_fetch: Remove evaltab; simplify handlers. 2019-09-04 19:28:42 -07:00
Jason Volk 9e69dff5dd modules/console: Increase width for ip6. 2019-09-04 14:02:38 -07:00
Jason Volk 794ef036e1 modules/m_room_bootstrap: Fetch federation keys for state events concurrently. 2019-09-04 13:39:02 -07:00
Jason Volk 6586a9e084 modules/m_room_bootstrap: Additional infolog messages during process.
modules/m_room_bootstrap: Suppress already-evaluated warnings.
2019-09-04 13:39:00 -07:00
Jason Volk 8d2cc457f1 modules/console: Improve room top missing/gaps output. 2019-09-04 11:56:50 -07:00
Jason Volk 1c16e15753 modules/net_dns: Fix placement offset in results buffer. 2019-09-04 11:12:59 -07:00
Jason Volk 791c64c35b ircd:Ⓜ️:fetch: Clear request on retry; elaborate comparator; minor cleanup. 2019-09-03 22:14:53 -07:00
Jason Volk 957d90e63d modules/federation/send: Quiet vm::fault::EXISTS from the warnlog on eval. 2019-09-03 18:01:50 -07:00
Jason Volk 196ee9e157 modules/m_fetch: Increase worker stack size. 2019-09-03 17:57:32 -07:00
Jason Volk 2c3aca9a4a ircd:Ⓜ️:fetch: Improve handle worker; request_cleanup() related. 2019-09-03 17:55:05 -07:00
Jason Volk cca4f223ff ircd:Ⓜ️:fetch: Deduplicate requests with shared futures. 2019-09-03 15:56:14 -07:00
Jason Volk 74679a3a5f ircd:Ⓜ️:fetch: Fix initialization order for server::request buf; add linkage for dtor. 2019-09-03 14:43:34 -07:00
Jason Volk 2579313bad modules/console: Remove cruft. 2019-09-03 11:10:30 -07:00
Jason Volk 6e8a7a4162 modules/m_fetch: Fix debuglog msg argument bitrot. 2019-09-03 10:07:08 -07:00
Jason Volk 5c591582a2 modules/m_vm_fetch: Backfill backshore gaps off prev_events. 2019-08-31 02:03:47 -07:00
Jason Volk 1cad69bf41 modules/m_fetch: Simplify/fix comparator suite. 2019-08-31 02:03:47 -07:00
Jason Volk 557c8a3c86 modules/m_room_redaction: Query for sender match rather than event hostpart. 2019-08-31 00:23:45 -07:00