mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-16 23:50:01 -04:00
don't unconstrain the ws
This commit is contained in:
parent
0fa2492a56
commit
87a633d37a
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ async fn accept_http(mut req: Request<Incoming>, addr: String) -> Result<Respons
|
||||||
let (res, fut) = upgrade::upgrade(&mut req)?;
|
let (res, fut) = upgrade::upgrade(&mut req)?;
|
||||||
|
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
if let Err(e) = tokio::task::unconstrained(accept_ws(fut, uri.path().to_string(), addr.clone())).await
|
if let Err(e) = accept_ws(fut, uri.path().to_string(), addr.clone()).await
|
||||||
{
|
{
|
||||||
println!("{:?}: error in ws: {:?}", addr, e);
|
println!("{:?}: error in ws: {:?}", addr, e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue