Implement timeouts during read and proper retry behavior
This commit is contained in:
1 parent
8908c7f62e
commit
7fab45d5a9
3 files changed
+33
-21
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user