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 {
|
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,10 +126,10 @@ impl FlowgateServer {
|
|||||||
&mut stream,
|
&mut stream,
|
||||||
addr,
|
addr,
|
||||||
true
|
true
|
||||||
).map(|_| {
|
);
|
||||||
|
|
||||||
debug!("{} close connection", addr);
|
debug!("{} close connection", addr);
|
||||||
});
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user