We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dfa70b commit a8e68bdCopy full SHA for a8e68bd
taxy/src/server/quic.rs
@@ -178,10 +178,10 @@ fn create_quic_endpoint(
178
socket.bind(&addr.into())?;
179
let runtime = quinn::default_runtime()
180
.ok_or_else(|| io::Error::new(io::ErrorKind::Other, "quinn runtime not available"))?;
181
- quinn::Endpoint::new(
+ quinn::Endpoint::new_with_abstract_socket(
182
quinn::EndpointConfig::default(),
183
Some(server_config),
184
- socket.into(),
+ runtime.wrap_udp_socket(socket.into())?,
185
runtime,
186
)
187
}
0 commit comments