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 256ba80 commit 906cb90Copy full SHA for 906cb90
.bleep
@@ -1 +1 @@
1
-2815596ca30463adb7c8a47beb66577a0c6603eb
+0c088fcbf18292757b05a210e3d03c50feefbaf0
pingora-core/src/listeners/l4.rs
@@ -307,9 +307,14 @@ impl ListenerEndpointBuilder {
307
308
#[cfg(windows)]
309
pub async fn listen(self) -> Result<ListenerEndpoint> {
310
+ let listen_addr = self
311
+ .listen_addr
312
+ .expect("Tried to listen with no addr specified");
313
+ let listener = bind(&listen_addr).await?;
314
+
315
Ok(ListenerEndpoint {
316
listen_addr,
- listener: bind(&listen_addr).await?,
317
+ listener: Arc::new(listener),
318
})
319
}
320
0 commit comments