0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-09 02:01:32 +02:00
Commit graph

3532 commits

Author SHA1 Message Date
Jason Volk
20d0ea70c2 ircd::ios: Add tsc counters to hook state. 2019-03-27 13:04:12 -07:00
Jason Volk
28063823dd ircd::ctx: Inline rdtsc(). 2019-03-27 13:04:12 -07:00
Jason Volk
d37129ac03 ircd::ios: Add allocation hooks. 2019-03-27 13:04:12 -07:00
Jason Volk
d2546120ee ircd: Add descriptor participation for all asynchronous operations. 2019-03-27 13:04:12 -07:00
Jason Volk
d5397c599f ircd::ios: Add asio handler hook framework. 2019-03-27 13:04:12 -07:00
Jason Volk
3bc716e0f5 ircd::ctx: Assert ctx doesn't finish with uncaught exceptions. 2019-03-27 13:04:12 -07:00
Jason Volk
6fbd29b1ed ircd::ctx: Add context::WAIT_JOIN feature flag. 2019-03-27 13:04:12 -07:00
Jason Volk
97ee68d4f3 ircd::server: Don't alter open_opts.hostport here. 2019-03-25 19:14:49 -07:00
Jason Volk
0f184cd449 ircd::server: Fix loghead() failure conditions. 2019-03-25 18:48:32 -07:00
Jason Volk
84d4ca485b ircd:Ⓜ️:room::state: Add preliminary purge_replaced() w/ console cmd. 2019-03-25 18:39:30 -07:00
Jason Volk
6b3a459d29 Revert "ircd::server: Fix concurrency assumptions in server::get()."
This reverts commit 3db83faac3.
2019-03-25 18:31:05 -07:00
Jason Volk
1ffa00adbf ircd:Ⓜ️:room: Add central interface linkage for room::purge(). 2019-03-25 18:04:16 -07:00
Jason Volk
45d29ed5cf ircd::net: Add log messages reporting IPv6 init status; handle errors during check. 2019-03-25 16:33:22 -07:00
Jason Volk
195937cd08 ircd::server: Condition the next query after SRV on ipv6 state. 2019-03-25 15:20:01 -07:00
Jason Volk
a54c5f44e4 ircd::net: Add conf item to toggle ipv6 for ircd::net::. Auto-detect viability on net::init. 2019-03-25 15:18:06 -07:00
Jason Volk
c0cbfd2d23 ircd::net: Add util to detect usable ipv6 interface. 2019-03-25 15:18:06 -07:00
Jason Volk
672e9dd712 ircd::server: Add conf item to toggle ipv6 use. 2019-03-25 15:18:06 -07:00
Jason Volk
28569176f2 ircd::net: Use a structured argument to addrs closure; add more data. 2019-03-25 15:18:06 -07:00
Jason Volk
a43c0e5798 ircd::server: Split AAAA and A handlers for chaining. 2019-03-25 14:37:01 -07:00
Jason Volk
8c27cb847a ircd::net: Add conditional interface to getifaddrs() w/ console cmd. 2019-03-25 13:56:08 -07:00
Jason Volk
4d3fd753e1 ircd::net: Add interface for listener bound socket information; improve net listen console cmd. 2019-03-25 12:55:59 -07:00
Jason Volk
d7631dc39b ircd::server: Skip DNS resolution on IP literals. 2019-03-25 12:26:56 -07:00
Jason Volk
9d552cd88a ircd::net: Improve ipport/ep to_string related. 2019-03-25 12:25:25 -07:00
Jason Volk
46346f504e ircd::rfc3986: Reorg grammar stack; add variable valid() tool. 2019-03-25 12:25:25 -07:00
Jason Volk
c5088c3af2 ircd::server: Show response code in tag completion debug log msg. 2019-03-25 12:25:25 -07:00
Jason Volk
d149c540f4 ircd::server: Split link opening routine from resolver handler. 2019-03-24 20:50:16 -07:00
Jason Volk
a9cff4f073 ircd::rfc3986: Add valid_literal() to interface. 2019-03-24 20:50:16 -07:00
Jason Volk
7f5f07509a ircd::net::dns: Add utils to properly check for empty records in JSON. 2019-03-24 20:13:23 -07:00
Jason Volk
fe81c30806 ircd::net: Refactor dual stack integration. 2019-03-24 19:33:03 -07:00
Jason Volk
be563a9f18 ircd::net: Fix constness. 2019-03-24 16:21:01 -07:00
Jason Volk
c3c99ecea8 ircd::net: Interface support for sockopt IPPROTO_IPV6 IP_V6ONLY. 2019-03-24 16:20:05 -07:00
Jason Volk
138b7bff65 ircd::net: Interface wrap boost::asio::ip::make_address(). 2019-03-24 15:59:46 -07:00
Jason Volk
e640e6ac62 ircd::server: Perform DNS resolution sequence and handler logic externally here. 2019-03-24 15:28:07 -07:00
Jason Volk
71b86df0fe ircd::net::dns: Reorg various utilities from dns::cache:: to dns::. 2019-03-24 14:50:26 -07:00
Jason Volk
55af53e2a0 ircd::net::dns::cache: Add addl utils random_choice and is_error(). 2019-03-24 14:47:07 -07:00
Jason Volk
dbb965ce48 ircd::server: Add loghead() and display request method/paths in some debug log msgs. 2019-03-24 14:10:11 -07:00
Jason Volk
a1ac9cb356 ircd::net::dns: Expose more cache utils to public interface. 2019-03-24 14:06:47 -07:00
Jason Volk
59b0b633cb ircd::mods: Support code and data demangled export sections. 2019-03-24 14:06:47 -07:00
Jason Volk
94ed73a60e ircd::http: Remove gratuitous error constructor; fix 505 response content. 2019-03-23 03:13:11 -07:00
Jason Volk
b72758f904 ircd::server: Fix insertion/resolver reentrancy conflict. 2019-03-22 21:06:28 -07:00
Jason Volk
77648137e9 Revert "ircd: Remove use of all unwind::exceptional and unwind::nominal devices."
This reverts commit 4f243826c2.
2019-03-22 21:06:28 -07:00
Jason Volk
712409218e ircd::ctx: Manipulate uncaught exception count on context switch. 2019-03-22 21:06:28 -07:00
Jason Volk
86759ecc15 ircd::http: Show the unrecognized version string in error message. 2019-03-22 21:06:28 -07:00
Jason Volk
5ca54b06d1 ircd::resource: Show the X-Matrix-Authorization destination host in error. 2019-03-22 18:14:07 -07:00
Jason Volk
3480819ab5 configure: Add conditional for --enable-lowmem-compile. 2019-03-22 17:46:21 -07:00
Jason Volk
2f1cd45fba ircd/Makefile.am: Apply param ggc-min-expand to grammar units; minor reorg. 2019-03-22 16:43:17 -07:00
Jason Volk
3db83faac3 ircd::server: Fix concurrency assumptions in server::get(). 2019-03-22 15:13:55 -07:00
Jason Volk
8f41687940 modules/s_dns: Fix exception propagation to callback. 2019-03-22 13:51:28 -07:00
Jason Volk
e62e65df6b ircd::server: Add peer to map before resolve. 2019-03-22 10:51:11 -07:00
Jason Volk
68e3655a1d ircd::net::dns: Refactor system for the !dns room. 2019-03-21 18:24:36 -07:00
Jason Volk
e133cd5a25 ircd::net: Add specific allow(acceptor) rather than using start(acceptor). 2019-03-21 17:07:35 -07:00
Jason Volk
a6886dafe6 ircd::net: Bail early if no SNI sent by client. 2019-03-21 16:54:36 -07:00
Jason Volk
008dfcb43f ircd:Ⓜ️:vm: Add counters and synchronization for safe module reloading. 2019-03-21 16:46:04 -07:00
Jason Volk
4b7bc1d5b1 modules/vm: Rename/export core functions. 2019-03-21 16:46:04 -07:00
Jason Volk
82378db816 modules/vm: Share transactions between all evals on the same stack; adjust sequence strategy. 2019-03-21 16:46:04 -07:00
Jason Volk
a7f6549c27 ircd:Ⓜ️:vm: Add tools for evals on a specific stack/ctx. 2019-03-21 14:11:42 -07:00
Jason Volk
507c256eb4 ircd:Ⓜ️:vm: Add loghead convenience. 2019-03-21 12:49:02 -07:00
Jason Volk
a6ae9a7c90 ircd::json: Provide a more appropriate type_error to help matrix.org. 2019-03-19 17:31:47 -07:00
Jason Volk
5b951b55c5 modules/vm: Add sequencing points.
ircd:Ⓜ️:vm: Reorganize sequence counters.
2019-03-19 16:31:05 -07:00
Jason Volk
620e352a4f ircd::db::txn: Add a state enum to the txn. 2019-03-19 13:39:15 -07:00
Jason Volk
7db86a58c2 ircd::net: Tweak stringification of net::hostport. 2019-03-19 10:11:29 -07:00
Jason Volk
dbc2ca3b64 ircd::rfc1035: Add json::stack serializations for record types. 2019-03-19 10:11:29 -07:00
Jason Volk
29ba0d214b ircd::net: Reinterface string(ippaddr) related. 2019-03-18 12:39:21 -07:00
Jason Volk
effc34c86f ircd::fs::aio: Add struct aio_ring from the kernel ABI. 2019-03-17 18:41:45 -07:00
Jason Volk
5be75970e0 ircd::ctx: Ensure no rethrow from destructor. 2019-03-17 15:35:19 -07:00
Jason Volk
1ce9ec3f8e ircd::fs::error: Remove fs::error from the ircd::exception hierarchy. 2019-03-16 18:12:38 -07:00
Jason Volk
fec03b198e ircd::fs::aio: Improve request exception information. 2019-03-16 18:12:38 -07:00
Jason Volk
2eb9fff55f ircd::net: Reorg acceptor internal control panel; provide external start()/stop(). 2019-03-16 16:28:28 -07:00
Jason Volk
f2f2afb8c4 ircd::net: Reorg listener/acceptor external interface. 2019-03-16 16:28:28 -07:00
Jason Volk
cff17eaa40 ircd: Add exception tools which elide copying. 2019-03-16 16:28:28 -07:00
Jason Volk
e752070d06 ircd::fs: Handle zero length buffers in the iov. 2019-03-16 13:49:04 -07:00
Jason Volk
b3a875bc63 ircd::net::acceptor: Don't condition response for SNI here. 2019-03-16 12:37:44 -07:00
Jason Volk
89b258c5a7 ircd::fs: Improve fs::prefetch(). 2019-03-15 21:36:26 -07:00
Jason Volk
cc25cce9e4 ircd::exception: Fix exception title formatting. 2019-03-15 19:33:24 -07:00
Jason Volk
64959387bb ircd::fs::aio: Move the slice_usage_warning closer to SYS_io_submit. 2019-03-15 19:11:46 -07:00
Jason Volk
20716634a8 ircd::fs: Improve condition for RWF_APPEND/pwritev2() -1 offset value. 2019-03-15 18:45:39 -07:00
Jason Volk
4efb3a26fd ircd::fs: Reorg general RWF_ indicators out to fs:: from aio::. 2019-03-15 18:45:32 -07:00
Jason Volk
353fc35df4 ircd::fs: Don't set -1 offset on systems without RWF_APPEND. 2019-03-15 18:34:35 -07:00
Jason Volk
293f6d5480 ircd::fs::aio: Throw system_error from here due to ambiguity.
ircd::fs: Trap on EINVAL.
2019-03-15 18:23:25 -07:00
Jason Volk
6da3e88bc4 ircd::fs::aio: Remove assertion that handle_event() is not on context stack. 2019-03-15 17:42:11 -07:00
Jason Volk
9f73299408 ircd::fs::aio: Move seting aio_reqprio to the super constructor. 2019-03-15 16:45:57 -07:00
Jason Volk
2a0720c1a0 ircd::fs: Use flags based on system availability. 2019-03-15 16:19:05 -07:00
Jason Volk
fbe06f5724 ircd::fs: Rotate more internal bufs in case of reentrance. 2019-03-15 16:19:05 -07:00
Jason Volk
aae00eab7f ircd:Ⓜ️:app: Add configuration access interface for appservice. 2019-03-15 16:19:05 -07:00
Jason Volk
8a100eeb26 ircd::assert: Ensure x86_64 for use of trap instruction. 2019-03-15 16:19:05 -07:00
Jason Volk
ede2439a55 ircd: Add support for configurable soft-assertions. 2019-03-15 16:19:05 -07:00
Jason Volk
ddb08a37a4 ircd:Ⓜ️:user: Add framework around m.ignored_user_list; w/ console cmd. 2019-03-14 17:27:45 -07:00
Jason Volk
474464f1bb ircd::mods: Fix termination loop for static exceptions in dlopen(). 2019-03-14 16:20:40 -07:00
Jason Volk
380032d4a9 ircd:Ⓜ️:room: Augment m::invite() convenience interface for custom content. 2019-03-14 15:32:06 -07:00
Jason Volk
2070a72850 ircd:Ⓜ️:rooms: Add interface to remove entries from the !public room list. 2019-03-14 15:12:40 -07:00
Jason Volk
d0b5b68d9c ircd:Ⓜ️:room::power: Consider an empty prop argument for level_event(). 2019-03-14 13:21:55 -07:00
Jason Volk
0a8e79374f ircd::fs::aio: Improve error handling around io_submit(). 2019-03-14 12:45:00 -07:00
Jason Volk
87144cef77 ircd::fs: Support various RWF flags for operations; also preadv2(). 2019-03-14 12:45:00 -07:00
Jason Volk
56092db18c ircd::fs: Move the reqprio() normalizer from fs::aio:: to fs::. 2019-03-13 19:39:20 -07:00
Jason Volk
02435c3672 ircd::fs: Support pwritev2(2). 2019-03-13 19:38:50 -07:00
Jason Volk
034c2d9030 ircd:Ⓜ️ Stack protect around dynamic arrays used here. 2019-03-13 19:38:50 -07:00
Jason Volk
1117947a22 ircd::fs::aio: Add support test for RWF_NOWAIT and RWF_APPEND. 2019-03-13 19:38:47 -07:00
Jason Volk
213c46d9f8 ircd::net: Add interface to get cipher list from acceptor w/ console cmd. 2019-03-13 17:32:39 -07:00
Jason Volk
8daddfb84a ircd::net::listener: Add cast for internal acceptor access. 2019-03-13 17:32:16 -07:00
Jason Volk
69f1fe7241 ircd::db: Fix macro condition. 2019-03-13 16:11:29 -07:00