works almost. todo: config.toml
This commit is contained in:
parent
9c34c259ef
commit
744b65b738
6 changed files with 74 additions and 23 deletions
|
|
@ -61,7 +61,6 @@ where
|
|||
self.globals.runtime_handle.clone().spawn(async move {
|
||||
tokio::time::timeout(
|
||||
self.globals.timeout + Duration::from_secs(1),
|
||||
// server.serve_connection(stream, self),
|
||||
server.serve_connection(
|
||||
stream,
|
||||
service_fn(move |req: Request<Body>| self.clone().handle_request(req, peer_addr)),
|
||||
|
|
@ -71,6 +70,7 @@ where
|
|||
.ok();
|
||||
|
||||
clients_count.decrement();
|
||||
debug!("Client #: {}", clients_count.current());
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue