feat: 完成 OpenNexus 第三阶段核心功能与生产化基础 #45

Merged
Kronecker merged 151 commits from feat/phase3-completion into main 2026-09-10 01:16:31 +08:00
Showing only changes of commit e1040d3427 - Show all commits
+7 -1
View File
@@ -256,7 +256,13 @@ mod tests {
for body in responses {
let (mut stream, _) = listener.accept().unwrap();
let mut bytes = [0; 8192];
stream.read(&mut bytes).unwrap();
let mut count = 0;
while !bytes[..count].windows(4).any(|w| w == b"\r\n\r\n") {
assert!(count < bytes.len());
let n = stream.read(&mut bytes[count..]).unwrap();
assert!(n > 0);
count += n;
}
let body = body.to_string();
let status = match case {
"offline" => "503 Unavailable",