fix on monitoring socket
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Paul 2023-11-12 11:00:42 +01:00
parent b50a2d44d7
commit cd67b0d602

View File

@ -20,6 +20,9 @@ pub async fn apiserver(ctxarc: &Arc<RwLock<Context>>) -> io::Result<()> {
}
}
socket.set_reuseaddr(true).unwrap();
socket
.set_linger(Some(std::time::Duration::from_secs(0)))
.unwrap();
let listener = socket.listen(128).unwrap();
tokio::spawn(async move {