0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-04 07:45:17 +02:00
Commit graph

3473 commits

Author SHA1 Message Date
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
Jason Volk
eb7c7f07a7 ircd::fs::aio: Derive availability of IOCB_CMD_FSYNC / IOCB_CMD_FDSYNC. 2019-03-13 16:06:41 -07:00
Jason Volk
0158e88949 ircd::info: Get kernel name and version out of utsname if available. 2019-03-13 16:06:41 -07:00
Jason Volk
4c6e943d49 ircd::http: Simplify conditional. 2019-03-13 15:33:48 -07:00
Jason Volk
d6e97f6aab ircd::net: Send server name identification when opening client connections. 2019-03-13 13:44:41 -07:00
Jason Volk
59f63841ba ircd::openssl: Interface to set server name indication for client hello. 2019-03-13 13:32:56 -07:00
Jason Volk
fee9222e70 ircd::rfc1035: Fix assertion and enforce name limitations. 2019-03-13 13:32:47 -07:00
Jason Volk
15b25894d3 ircd::client: Fix response code from header parse failure handler. 2019-03-13 13:11:53 -07:00
Jason Volk
b3526298a9 ircd::net::acceptor: Rename logger to net.listen. 2019-03-13 13:11:53 -07:00
Jason Volk
cb979d96e7 ircd::net::acceptor: Add callback stack framework for dynamic server name identification. 2019-03-13 13:11:53 -07:00
Jason Volk
71560eafd1 ircd::openssl: Include TLS1 header; start an SNI suite; minor reorg. 2019-03-13 13:11:53 -07:00
Jason Volk
50e7d81d36 ircd::rfc3986: Add interface to extract host and port from remote via grammar. 2019-03-13 13:11:53 -07:00
Jason Volk
f955f1d494 ircd::rfc3986: Add length checks to validations; consolidate validation paths from rfc1035. 2019-03-13 13:11:51 -07:00
Jason Volk
dc377ea695 ircd::rfc1035: Add size constexprs. 2019-03-13 13:10:25 -07:00
Jason Volk
74c7d1d5c1 ircd::rfc1035: Add interface for validations. 2019-03-13 10:14:44 -07:00
Jason Volk
721039f359 ircd::net::acceptor: Add conf::item to blacklist ciphers out of the supported cipher list. 2019-03-12 18:41:05 -07:00
Jason Volk
e4fd5111fa ircd::openssl: Add overload to get cipher list from SSL_CTX. 2019-03-12 18:41:05 -07:00
Jason Volk
969a15c341 ircd::net::acceptor: Add conf::item to specify a default whitelist of ciphers in openssl format. 2019-03-12 18:41:05 -07:00
Jason Volk
72fe68bb29 ircd::stats: Start a preliminary stats system. 2019-03-12 18:41:05 -07:00
Jason Volk
38f7d61020 ircd::net::socket: Add non-blocking check() query with interface. 2019-03-12 18:41:05 -07:00
Jason Volk
303233cda4 ircd::client: Prevent double logging of caught HTTP errors. 2019-03-12 18:41:05 -07:00
Jason Volk
28b8306542 ircd::rfc1035: Throw error when name output buffer exceeded. 2019-03-12 18:41:05 -07:00
Jason Volk
4f243826c2 ircd: Remove use of all unwind::exceptional and unwind::nominal devices. 2019-03-12 18:41:05 -07:00
Jason Volk
ae4dc7db9b ircd::net::dns: Add a named logger specifically for net::dns; addl debug msgs. 2019-03-11 18:16:04 -07:00
Jason Volk
92d1416ecc ircd::fs::aio: Use a pointer to request rather than initial dereference. 2019-03-11 16:36:56 -07:00
Jason Volk
c4c95916c2 ircd:Ⓜ️ Add central event append() to compose elaborated json::stack::object for clients. 2019-03-11 16:02:36 -07:00
Jason Volk
f61059a400 ircd:Ⓜ️:room::state: Add prev() and next() reference traversal interface. 2019-03-11 15:06:54 -07:00
Jason Volk
3444bed245 ircd:Ⓜ️:dbs: Add a reverse reference for previous state in event refs index. 2019-03-11 14:46:11 -07:00
Jason Volk
06c548699a ircd:Ⓜ️:dbs: Add a previous state reference to refs meta index. 2019-03-11 13:40:25 -07:00
Jason Volk
5b3191345f ircd::client: Set some client::request values immediately after head parse. 2019-03-11 13:20:14 -07:00
Jason Volk
d474eed948 ircd::conf: Add more elaborate double-fault handling. 2019-03-11 12:53:22 -07:00
Jason Volk
499d9c7c6e ircd::conf: Revert conf item if setter or set callback fails. 2019-03-11 11:27:57 -07:00
Jason Volk
1fa5ebc415 ircd::conf: Add allocated string get() overloads. 2019-03-11 11:27:57 -07:00
Jason Volk
8353d0a7e9 ircd::conf: Add a size virtual member function to get value size as string. 2019-03-11 11:27:57 -07:00
Jason Volk
9d59074679 ircd::fs::aio: Don't cancel requests which were already completed. 2019-03-10 19:26:54 -07:00
Jason Volk
7aa9102f45 ircd::fs::aio: Add assertions at cancel() entry; tweak assertions that compare pointers. 2019-03-10 18:21:05 -07:00
Jason Volk
0c24ea5f40 ircd::net: Allow cipher list and curve list in the listener configuration object. 2019-03-10 16:59:35 -07:00
Jason Volk
d658729d07 ircd::net: Automate ecdh selections by default. 2019-03-10 16:55:39 -07:00
Jason Volk
b4fabaf14f ircd::openssl: Add interface to tweak ecdh / ciphers / curves. 2019-03-10 16:55:39 -07:00
Jason Volk
db30477e51 ircd::net::acceptor: Relax default flags. 2019-03-10 16:55:39 -07:00
Jason Volk
a55c549e70 ircd:Ⓜ️:dbs: Add reference index type for m.room.redaction. 2019-03-10 14:52:11 -07:00
Jason Volk
a4f02e4e4a ircd::net::acceptor: Remove any default DH params when nothing supplied in config. 2019-03-10 14:31:54 -07:00
Jason Volk
c220c0abaf ircd::net::acceptor: Allow all flags to be set through options structure. 2019-03-10 14:16:33 -07:00
Jason Volk
c6975804e7 ircd::net: Move acceptors class from being nested in listeners. 2019-03-10 14:04:03 -07:00
Jason Volk
1381524f95 ircd:Ⓜ️:device: Add has(user, device_id, property) overload to interface suite. 2019-03-09 18:48:32 -08:00
Jason Volk
077f8bb546 ircd::logger: Add conf items to control the log mask. 2019-03-09 17:10:49 -08:00
Jason Volk
d763a15edb ircd::tokens: Add token_exists() set membership test. 2019-03-09 17:03:52 -08:00
Jason Volk
312e4958f7 ircd::tokens: Add bool closure for limited for_each iteration. 2019-03-09 17:03:13 -08:00
Jason Volk
6cc17887de ircd::log: Add interface for file mask / unmask; fix constness. 2019-03-09 16:43:27 -08:00
Jason Volk
db8c91661e ircd::log: Increase the logger name width. 2019-03-09 16:05:45 -08:00
Jason Volk
47446dcd5c ircd:Ⓜ️:vm: Translate vm::fault codes to better specific http::code's for m::error's. 2019-03-09 14:00:00 -08:00
Jason Volk
bba6981166 ircd::http: Verify HTTP version after request line. 2019-03-09 14:00:00 -08:00
Jason Volk
197168059b ircd:Ⓜ️:vm: Create a conform hook; move checks into conform hookfns. 2019-03-09 14:00:00 -08:00
Jason Volk
395a6ceabd ircd::server: Add request option to control whether content overrun is an error. 2019-03-08 16:52:48 -08:00
Jason Volk
6d9fb00d8c ircd::server: Fix discard buffering. 2019-03-08 16:32:37 -08:00
Jason Volk
98a3535e06 ircd::net: Elaborate ipaddr interface; move apropos string utils from ipport.h 2019-03-08 11:46:50 -08:00
Jason Volk
01019640cd ircd:Ⓜ️:user::rooms: Optimize user rooms iteration. 2019-03-08 11:22:42 -08:00
Jason Volk
3a673dadf4 ircd:Ⓜ️:room::state: Extend the for_each stack with optimal type,state_key closure. 2019-03-08 11:21:56 -08:00
Jason Volk
7607978d80 ircd:Ⓜ️ Fix initial events bootstrap regression. 2019-03-08 09:28:34 -08:00
Jason Volk
57f28374c9 ircd::http: Add 428 Precondition Required. 2019-03-07 16:01:19 -08:00