synapse/rust
Quentin Gliech f031105eee
Start and stop the Tokio runtime with the Twisted reactor (#18691)
Fixes https://github.com/element-hq/synapse/issues/18659

This changes the Tokio runtime to be attached to the Twisted reactor.
This way, the Tokio runtime starts when the Twisted reactor starts, and
*not* when the module gets loaded.

This is important as starting the runtime on module load meant that it
broke when Synapse was started with `daemonize`/`synctl`, as forks only
retain the calling threads, breaking the Tokio runtime.

This also changes so that the HttpClient gets the Twisted reactor
explicitly as parameter instead of loading it from
`twisted.internet.reactor`
2025-07-17 15:15:11 +00:00
..
benches Implement MSC4210: Remove legacy mentions (#17783) 2024-10-14 14:24:28 +01:00
src Start and stop the Tokio runtime with the Twisted reactor (#18691) 2025-07-17 15:15:11 +00:00
build.rs Implement push rule evaluation in Rust. (#13838) 2022-09-29 16:12:09 +01:00
Cargo.toml Start and stop the Tokio runtime with the Twisted reactor (#18691) 2025-07-17 15:15:11 +00:00