Fix deflate test.

Skip over empty messages or else the socket may not be connected by the
time `close` is called on it.
This commit is contained in:
Toralf Wittner
2019-12-19 12:28:46 +01:00
parent 9349d6ce25
commit 34a631d560
2 changed files with 52 additions and 33 deletions

View File

@ -71,6 +71,7 @@ where
}
/// Decodes and encodes traffic using DEFLATE.
#[derive(Debug)]
pub struct DeflateOutput<S> {
/// Inner stream where we read compressed data from and write compressed data to.
inner: S,