WIP: get http load test into better (but bad) state

Is now able to maintain correspondence with aquatic_http
and opentracker
This commit is contained in:
Joakim Frostegård 2020-08-02 06:38:36 +02:00
parent 9707898a32
commit cb3ec8cbf1
6 changed files with 89 additions and 44 deletions

View file

@ -55,7 +55,7 @@ impl AnnounceRequest {
output.write_all(key.as_str().as_bytes())?;
}
output.write_all(b" HTTP/1.1\r\n\r\n")?;
output.write_all(b" HTTP/1.1\r\nConnection: keep-alive\r\n\r\n")?;
Ok(())
}
@ -85,7 +85,7 @@ impl ScrapeRequest {
first = false;
}
output.write_all(b" HTTP/1.1\r\n\r\n")?;
output.write_all(b" HTTP/1.1\r\nConnection: keep-alive\r\n\r\n")?;
Ok(())
}