💄 Tweak a few things and update todo
parent
e0b8c8cb58
commit
151f236a0b
|
@ -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;
|
||||
|
||||
|
|
|
@ -196,7 +196,7 @@ async fn serve_file (
|
|||
|
||||
bytes_left -= bytes_read;
|
||||
if bytes_left == 0 {
|
||||
info! ("Finished");
|
||||
debug! ("Finished");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
8
todo.md
8
todo.md
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue