fix on monitoring socket
This commit is contained in:
parent
b50a2d44d7
commit
cd67b0d602
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user