more logging and make threadpool config working

This commit is contained in:
MeexReay 2025-04-12 23:27:18 +03:00
parent 377090869f
commit e593decbed

View File

@ -41,8 +41,7 @@ impl FlowgateServer {
pub fn start(self) -> ThreadPool { pub fn start(self) -> ThreadPool {
let local_self = Arc::new(self); let local_self = Arc::new(self);
// let threadpool = ThreadPool::new(local_self.config.threadpool_size); let threadpool = ThreadPool::new(local_self.config.threadpool_size);
let threadpool = ThreadPool::new(3);
let mut handles = Vec::new(); let mut handles = Vec::new();
@ -88,6 +87,8 @@ impl FlowgateServer {
addr, addr,
false false
); );
debug!("{} close connection", addr);
}); });
} }
} }
@ -125,9 +126,9 @@ impl FlowgateServer {
&mut stream, &mut stream,
addr, addr,
true true
).map(|_| { );
debug!("{} close connection", addr);
}); debug!("{} close connection", addr);
}); });
} }
} }