💄 Tweak a few things and update todo

main
_ 2020-11-07 23:10:01 +00:00
parent e0b8c8cb58
commit 151f236a0b
3 changed files with 9 additions and 3 deletions

View File

@ -73,7 +73,7 @@ impl ForcedShutdown {
let fut = async move {
self.rx.await.unwrap ();
self.tx.send (()).unwrap ();
let timeout = 10;
let timeout = 5;
debug! ("Starting graceful shutdown. Forcing shutdown in {} seconds", timeout);
delay_for (Duration::from_secs (timeout)).await;

View File

@ -196,7 +196,7 @@ async fn serve_file (
bytes_left -= bytes_read;
if bytes_left == 0 {
info! ("Finished");
debug! ("Finished");
break;
}

View File

@ -1,4 +1,3 @@
- Relay doesn't always shut down _if_ accessed by Firefox?
- Not working behind Nginx
- Try sending the http_response "OK" _after_ the request body is received
@ -22,3 +21,10 @@
Off-project stuff:
- Benchmark directory entry sorting
Known issues:
Relay can't shut down gracefully if Firefox is connected to it, e.g. if Firefox
kept a connection open while watching a video.
I'm pretty sure this is a bug in Hyper, so for now I've worked around it with a
forced shutdown timer.