synapse/rust/src
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
..
acl Bump pyo3 to v0.23.2 (#17966) 2024-11-27 10:46:00 +00:00
events Bump pyo3 to v0.23.2 (#17966) 2024-11-27 10:46:00 +00:00
push Bump pyo3 to v0.23.2 (#17966) 2024-11-27 10:46:00 +00:00
rendezvous Fix MSC4108 'rendez-vous' responses with some reverse proxy in the front of Synapse (#18178) 2025-02-25 11:34:33 +01:00
errors.rs Speed up MAS token introspection (#18357) 2025-06-16 16:41:35 +01:00
http_client.rs Start and stop the Tokio runtime with the Twisted reactor (#18691) 2025-07-17 15:15:11 +00:00
http.rs Bump pyo3 to v0.23.2 (#17966) 2024-11-27 10:46:00 +00:00
identifier.rs Fix registering of background updates for split main/state db (#18509) 2025-06-25 13:59:18 +01:00
lib.rs Replace PyICU with Rust icu_segmenter crate (#18553) 2025-07-03 11:12:12 +01:00
matrix_const.rs Move server event filtering logic to rust (#17928) 2024-11-14 16:18:24 +00:00
segmenter.rs Replace PyICU with Rust icu_segmenter crate (#18553) 2025-07-03 11:12:12 +01:00