fix graceful shutdown to close once idle (#296)

This commit is contained in:
Sean McArthur
2018-07-30 21:42:00 -07:00
committed by Carl Lerche
parent fdfb873438
commit c564273986
3 changed files with 33 additions and 10 deletions

View File

@@ -268,7 +268,7 @@ fn graceful_shutdown() {
.send_frame(frames::data(7, "").eos())
.send_frame(frames::data(3, "").eos())
.recv_frame(frames::headers(3).response(200).eos())
.close(); //TODO: closed()?
.recv_eof();
let srv = server::handshake(io)
.expect("handshake")