0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-10 20:11:07 +01:00
Commit graph

70 commits

Author SHA1 Message Date
Jason Volk
ceff9f54a4 modules/s_fetch: Add requests limit w/ conf item. 2019-06-05 17:12:02 -07:00
Jason Volk
64a7bbed00 modules/s_fetch: Improve timeout and retry algorithm. 2019-06-04 20:12:10 -07:00
Jason Volk
f5df386e1c ircd:Ⓜ️:fetch: Add a request count() to interface. 2019-06-04 18:50:17 -07:00
Jason Volk
1dc8f999e7 modules/s_fetch: Improve error reporting and reduce warning noise around auth_chain eval. 2019-06-01 18:38:08 -07:00
Jason Volk
3108a4bf9b modules/s_fetch: No need to block on auth_chain fetch individually. 2019-06-01 18:38:08 -07:00
Jason Volk
02794d5d9a modules/s_fetch: Document auth and prev fetch subroutines. 2019-06-01 18:38:08 -07:00
Jason Volk
ffda6a0848 modules/s_fetch: Downgrade log level to DERROR for fetch hook error. 2019-05-19 15:28:34 -07:00
Jason Volk
e0618dbdd8 modules/s_fetch: Fallback to fetching previous auth events when room is not known yet. 2019-05-17 09:07:01 -07:00
Jason Volk
660e609f31 modules/s_fetch: Belay net::hostport conversion to allow empty. 2019-05-17 08:50:32 -07:00
Jason Volk
9f2b887a22 modules/s_fetch: Fix submit error handling; move definition to unit. 2019-05-17 08:18:31 -07:00
Jason Volk
2a47c82534 modules/s_fetch: Indicate request error with belated removal. 2019-05-17 02:26:27 -07:00
Jason Volk
a5f26db7ea modules/s_fetch: Split hook handler into auth and prev related subroutines. 2019-04-30 14:14:08 -07:00
Jason Volk
0c7dcf6cc7 modules/s_fetch: Use better source node information for auth fetching on miss. 2019-04-29 11:37:48 -07:00
Jason Volk
010790550d modules/s_fetch: Fetch auth_chain for parent event rather than missing auth_events. 2019-04-27 20:00:26 -07:00
Jason Volk
6335a0ce09 modules/s_fetch: Use vm::eval array constructor here. 2019-04-26 05:30:21 -07:00
Jason Volk
c8df604d24 modules/s_fetch: Use request.finished=-1 for request gc. 2019-04-26 05:30:21 -07:00
Jason Volk
0b8ebf8d09 modules/s_fetch: Add conf item for auth timeout; tweak event timeout default. 2019-04-26 05:30:21 -07:00
Jason Volk
32bd8a8031 modules/s_fetch: Minor reorg. 2019-04-26 05:30:21 -07:00
Jason Volk
564a64e5d6 modules/s_fetch: Improve recursive eval. 2019-04-26 05:30:21 -07:00
Jason Volk
e7251730a3 modules/s_fetch: Additional debug msgs for synchronous auth_chain fetch. 2019-04-26 05:30:21 -07:00
Jason Volk
8fda41c2ef modules/s_fetch: Unset the request.origin after failed start. 2019-04-25 06:59:19 -07:00
Jason Volk
0a20ec19c0 modules/s_fetch: Remove cancels on request construction error. 2019-04-25 02:18:03 -07:00
Jason Volk
7d6271aa48 modules/s_fetch: Improve request removal synchronization between workers. 2019-04-25 00:36:38 -07:00
Jason Volk
4b70ae70c7 modules/s_fetch: Use the event origin as fallback host. 2019-04-24 21:31:04 -07:00
Jason Volk
0cbe9b0afa modules/s_fetch: Clear the origin after cancel so it's not re-attempted. 2019-04-24 14:23:48 -07:00
Jason Volk
c58a03f30a modules/s_fetch: Use event_auth for all auth event fetches. 2019-04-23 19:17:30 -07:00
Jason Volk
f84e2ce618 modules/s_fetch: Handle more detailed exception types. 2019-04-23 19:08:12 -07:00
Jason Volk
7bdf88bb9e modules/s_fetch: Use proper reset technique on request. 2019-04-23 18:24:11 -07:00
Jason Volk
771e5bb5da modules/s_fetch: Improve conditions checking and throw points. 2019-04-23 18:15:47 -07:00
Jason Volk
8b89b9caaf ircd: Simplify log msgs. 2019-04-23 18:15:47 -07:00
Jason Volk
8208a67e7f modules/s_fetch: Enable by default via conf item. 2019-04-23 13:27:53 -07:00
Jason Volk
4b3a828c01 modules/s_fetch: Log errors from the fetch hook handler. 2019-04-22 18:55:34 -07:00
Jason Volk
ee6760a655 modules/s_fetch: Tweak prev event checking options; fix condition; dispatch state_ids(). 2019-04-22 18:55:34 -07:00
Jason Volk
6df0b72e21 modules/s_fetch: Various conditions to bypass fetch. 2019-04-22 18:30:08 -07:00
Jason Volk
f6314a4201 modules/s_fetch: Minor reorg; pass room arg to fetch::synchronize(). 2019-04-22 12:45:45 -07:00
Jason Volk
7d3ccb975a modules/s_fetch: Add dispatch and wait logic to fetch hook handler. 2019-04-22 12:28:45 -07:00
Jason Volk
e3b1be2910 ircd:Ⓜ️:vm: Refactor various fetch related options. 2019-04-22 12:27:43 -07:00
Jason Volk
b683f1d436 modules/vm: Assert options; prevent assignment of eval. 2019-04-22 12:23:37 -07:00
Jason Volk
0176dba9a8 ircd:Ⓜ️:fetch: Consolidate interface; remove unused; reorg. 2019-04-18 19:12:37 -07:00
Jason Volk
5232893c6a ircd:Ⓜ️:fetch: Checkpoint frontfill / head selection related. 2019-04-18 05:17:49 -07:00
Jason Volk
bc922724cd ircd:Ⓜ️:feds: Refactor interface into opcode ABI. 2019-04-18 05:16:21 -07:00
Jason Volk
871fb748eb ircd:Ⓜ️:fetch: Pass boolean values down the stack for start/prefetch. 2019-04-18 01:21:22 -07:00
Jason Volk
474dff9f9f modules/s_fetch: Simplify origin selection branch. 2019-04-15 17:18:31 -07:00
Jason Volk
01fcef7eed modules/s_fetch: Additional break conditions for request handling loop. 2019-04-15 17:09:35 -07:00
Jason Volk
fde3e48fbf modules/s_fetch: Call for explicit destruction/cancel on error. 2019-04-15 15:23:44 -07:00
Jason Volk
484d298afb modules/s_fetch: Add proper fetch timeout logic. 2019-04-15 11:37:13 -07:00
Jason Volk
0ce0fe3890 ircd::server: Enable the cancel debug msg.
modules/s_fetch: Improve log level.
2019-04-12 14:26:10 -07:00
Jason Volk
1dcd4c8eb6 modules/s_fetch: Condition fetch::start() on runlevel. 2019-04-12 14:15:32 -07:00
Jason Volk
1063fcb657 modules/s_fetch: Report nr of reaped requests. 2019-04-12 13:03:29 -07:00
Jason Volk
12109be1a7 modules/s_fetch: Use m::event:prev parsing here. 2019-04-12 12:40:10 -07:00