don't break after keepalive response!

prepare v0.0.4 immediately; v0.0.3 is effectively unusable.

I want to test this properly, but I haven't yet figured out how to set
up good mocks of tokio::Sleep and such. For now just fix the bug.
This commit is contained in:
Scott Lamb 2021-06-28 15:29:52 -07:00
parent 037c501dfb
commit 7f32639608
4 changed files with 7 additions and 25 deletions

View File

@ -1,5 +1,9 @@
## unreleased
## v0.0.4 (2021-06-28)
* bugfix: Retina stopped receiving packets after receiving a keepalive response.
## v0.0.3 (2021-06-28)
* BREAKING CHANGE: `Session<Playing>` now directly implements `Stream` instead of

24
Cargo.lock generated
View File

@ -32,27 +32,6 @@ version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b"
[[package]]
name = "async-stream"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "171374e7e3b2504e0e5236e3b59260560f9fe94bfe9ac39ba5e4e929c5590625"
dependencies = [
"async-stream-impl",
"futures-core",
]
[[package]]
name = "async-stream-impl"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "648ed8c8d2ce5409ccd57453d9d1b214b342a0d69376a6feda1fd6cae3299308"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "atty"
version = "0.2.14"
@ -1087,9 +1066,8 @@ checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b"
[[package]]
name = "retina"
version = "0.0.3"
version = "0.0.4"
dependencies = [
"async-stream",
"base64",
"bitreader",
"bytes",

View File

@ -1,6 +1,6 @@
[package]
name = "retina"
version = "0.0.3"
version = "0.0.4"
authors = ["Scott Lamb <slamb@slamb.org>"]
license = "MIT/Apache-2.0"
edition = "2018"
@ -11,7 +11,6 @@ repository = "https://github.com/scottlamb/retina"
include = ["src/**/*", "benches", "Cargo.toml"]
[dependencies]
async-stream = "0.3.1"
base64 = "0.13.0"
bitreader = "0.3.3"
bytes = "1.0.1"

View File

@ -767,6 +767,7 @@ impl futures::Stream for Session<Playing> {
if let Err(e) = Session::handle_response(&mut state, response) {
return Poll::Ready(Some(Err(e)));
}
continue;
}
rtsp_types::Message::Request(request) => {
warn!("Received RTSP request in Playing state. Responding unimplemented.\n{:#?}",