Skip to content

Commit a8e68bd

Browse files
committed
Change QUIC endpoint creation to use abstract socket for improved runtime handling
1 parent 1dfa70b commit a8e68bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

taxy/src/server/quic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ fn create_quic_endpoint(
178178
socket.bind(&addr.into())?;
179179
let runtime = quinn::default_runtime()
180180
.ok_or_else(|| io::Error::new(io::ErrorKind::Other, "quinn runtime not available"))?;
181-
quinn::Endpoint::new(
181+
quinn::Endpoint::new_with_abstract_socket(
182182
quinn::EndpointConfig::default(),
183183
Some(server_config),
184-
socket.into(),
184+
runtime.wrap_udp_socket(socket.into())?,
185185
runtime,
186186
)
187187
}

0 commit comments

Comments
 (0)