3 ms·
They said they implemented the query engine in tokio, a popular async runtime in Rust, but quiche is blocking AFAIK. I wonder how they integrated the two.
by leshow 4y ago
They said they implemented the query engine in tokio, a popular async runtime in Rust, but quiche is blocking AFAIK. I wonder how they integrated the two.
- codewiz 4y agoNo, quiche is agnostic to the event framework used by the application: you have to handle socket I/O externally and hand the data you receive to the quiche connection objects which keep track of protocol state and tell you what to send back. The sample HTTP/3 client and server included with quiche use mio, a simple crate implementing an event model similar to POSIX's poll(): https://github.com/cloudflare/quiche/blob/master/apps/src/client.rs#L267 https://github.com/cloudflare/quiche/blob/master/apps/src/cl...