Implement timeouts during read and proper retry behavior

This commit is contained in:
George Hilliard committed 2020-05-09 15:52:06 -05:00
1 parent 8908c7f62e
commit 7fab45d5a9
3 files changed
+33 -21

No files matched your search

+3
View File
@@ -1,5 +1,6 @@
use serde::Deserialize;
use std::net::SocketAddr;
use std::time::Duration;
#[derive(Debug, Deserialize)]
pub struct Config {
@@ -18,6 +19,8 @@ pub struct CameraConfig {
pub username: String,
pub password: Option<String>,
pub timeout: Option<Duration>,
}
fn default_bind_addr() -> String {