[edge] Reload and share links: in-process config swap with self-reverting trials, admin socket with health and certificate status, share-link cookies, visitor pages and throttle

This commit is contained in:
2026-11-07 17:49:53 +01:00
parent c0ed9c65c5
commit 6ce1fe9d2b
18 changed files with 2137 additions and 186 deletions
+6 -5
View File
@@ -52,12 +52,13 @@ pub fn parse_response(raw: &[u8]) -> io::Result<Resp> {
{
let mut out = Vec::new();
let mut rest = &body[..];
loop {
let Some(p) = rest.windows(2).position(|w| w == b"\r\n") else {
break;
};
while let Some(p) = rest.windows(2).position(|w| w == b"\r\n") {
let size = usize::from_str_radix(
String::from_utf8_lossy(&rest[..p]).split(';').next().unwrap_or("0").trim(),
String::from_utf8_lossy(&rest[..p])
.split(';')
.next()
.unwrap_or("0")
.trim(),
16,
)
.map_err(other)?;