Skip to content
Snippets Groups Projects
Commit 74a822e6 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Increase message timeout

parent 6281f6e1
Branches
No related tags found
No related merge requests found
...@@ -1367,7 +1367,7 @@ checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" ...@@ -1367,7 +1367,7 @@ checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
[[package]] [[package]]
name = "sms-gateway" name = "sms-gateway"
version = "0.4.2" version = "0.4.4"
dependencies = [ dependencies = [
"actix-rt", "actix-rt",
"actix-web", "actix-web",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
name = "sms-gateway" name = "sms-gateway"
description = "A http frontend for SMS Server Tools 3" description = "A http frontend for SMS Server Tools 3"
authors = ["David Huss <david.huss@hfbk-hamburg.de>"] authors = ["David Huss <david.huss@hfbk-hamburg.de>"]
version = "0.4.2" version = "0.4.4"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
......
...@@ -14,8 +14,8 @@ set -o nounset ...@@ -14,8 +14,8 @@ set -o nounset
set -o pipefail set -o pipefail
# Details of the Remote Target machine # Details of the Remote Target machine
readonly TARGET_HOST=root@10.20.13.204 readonly TARGET_HOST=root@smsgw
readonly TARGET_PORT=22 readonly TARGET_PORT=2222
readonly TARGET_PATH=/srv/sms-gateway/ readonly TARGET_PATH=/srv/sms-gateway/
# Use this for Raspberry Pi 32 Bit OS # Use this for Raspberry Pi 32 Bit OS
......
...@@ -51,7 +51,7 @@ const BINARY_NAME: &str = env!("CARGO_BIN_NAME"); ...@@ -51,7 +51,7 @@ const BINARY_NAME: &str = env!("CARGO_BIN_NAME");
#[get("/")] #[get("/")]
async fn home() -> impl Responder { async fn home() -> impl Responder {
HttpResponse::Ok().body(format!("{} {}\nAuthor: {}\n{}", PACKAGE_NAME, VERSION, AUTHOR, DESCRIPTION)) HttpResponse::Ok().body(format!("{} {}\nAuthor: {}\n{}\n", PACKAGE_NAME, VERSION, AUTHOR, DESCRIPTION))
} }
...@@ -92,7 +92,7 @@ async fn sms_send(info: Json<Sms>, data: Data<Mutex<History>>) -> Result<Json<Sm ...@@ -92,7 +92,7 @@ async fn sms_send(info: Json<Sms>, data: Data<Mutex<History>>) -> Result<Json<Sm
_ => {} _ => {}
} }
} }
if counter > 100 { if counter > 1000 {
error!("Failed to read SMS status within the deadline of {} ms", interval*100); error!("Failed to read SMS status within the deadline of {} ms", interval*100);
return Err(SmsError::SendTimeOut); return Err(SmsError::SendTimeOut);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment