more logging and make threadpool config working
This commit is contained in:
parent
377090869f
commit
e593decbed
@ -41,8 +41,7 @@ impl FlowgateServer {
|
||||
pub fn start(self) -> ThreadPool {
|
||||
let local_self = Arc::new(self);
|
||||
|
||||
// let threadpool = ThreadPool::new(local_self.config.threadpool_size);
|
||||
let threadpool = ThreadPool::new(3);
|
||||
let threadpool = ThreadPool::new(local_self.config.threadpool_size);
|
||||
|
||||
let mut handles = Vec::new();
|
||||
|
||||
@ -88,6 +87,8 @@ impl FlowgateServer {
|
||||
addr,
|
||||
false
|
||||
);
|
||||
|
||||
debug!("{} close connection", addr);
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -125,10 +126,10 @@ impl FlowgateServer {
|
||||
&mut stream,
|
||||
addr,
|
||||
true
|
||||
).map(|_| {
|
||||
);
|
||||
|
||||
debug!("{} close connection", addr);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user