Commit d47a9f7
Per-SNI HTTP/3 over ACME via purecrypto::quic::peek_initial_sni (0.6.25)
- rt/quic.rs: CertSource { Static | Acme }. For ACME, each new QUIC connection
peeks the SNI from the Initial (peek_initial_sni) and selects the cert with
AcmeManager::choose_cached — a NON-blocking lookup (in-memory cache → disk)
so the single QUIC event loop never stalls on issuance (the TCP path issues;
browsers reach TCP first and upgrade via Alt-Svc).
- AcmeManager::choose_cached: cached/on-disk cert only, no ACME round-trip.
- run_h3 builds CertSource from .acme() (per-SNI) or .tls() (static); the
http3_host hack stays gone.
- CLI: HTTP/3 on by default for ACME too (http3_enabled includes accept_tos).
Note: per-SNI h3 over ACME is gated on a purecrypto peek_initial_sni fix —
it currently returns Ok(None) for a real curl/ngtcp2 1200-byte padded Initial
(the full QuicConnection parses the same datagram fine), so the cert can't be
selected yet. Static-cert HTTP/3 is unaffected.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 447242c commit d47a9f7
5 files changed
Lines changed: 98 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
150 | 184 | | |
151 | 185 | | |
152 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 62 | | |
68 | 63 | | |
69 | 64 | | |
| |||
261 | 256 | | |
262 | 257 | | |
263 | 258 | | |
264 | | - | |
265 | | - | |
| 259 | + | |
| 260 | + | |
266 | 261 | | |
267 | 262 | | |
268 | | - | |
| 263 | + | |
269 | 264 | | |
270 | 265 | | |
271 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
295 | 299 | | |
296 | 300 | | |
297 | | - | |
| 301 | + | |
298 | 302 | | |
299 | 303 | | |
300 | | - | |
301 | | - | |
302 | | - | |
| 304 | + | |
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
23 | 61 | | |
24 | 62 | | |
25 | 63 | | |
| |||
34 | 72 | | |
35 | 73 | | |
36 | 74 | | |
37 | | - | |
| 75 | + | |
38 | 76 | | |
39 | 77 | | |
40 | 78 | | |
| |||
55 | 93 | | |
56 | 94 | | |
57 | 95 | | |
58 | | - | |
| 96 | + | |
59 | 97 | | |
60 | 98 | | |
61 | 99 | | |
| |||
90 | 128 | | |
91 | 129 | | |
92 | 130 | | |
93 | | - | |
| 131 | + | |
94 | 132 | | |
95 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
96 | 138 | | |
97 | 139 | | |
98 | 140 | | |
| |||
0 commit comments