Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion actix-server/examples/tcp-echo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async fn run() -> io::Result<()> {
let count = Arc::new(AtomicUsize::new(0));

let addr = ("127.0.0.1", 8080);
info!("starting server on port: {}", &addr.0);
info!("starting server on: {}:{}", &addr.0, &addr.1);

// Bind socket address and start worker(s). By default, the server uses the number of physical
// CPU cores as the worker count. For this reason, the closure passed to bind needs to return
Expand Down
12 changes: 1 addition & 11 deletions actix-server/src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,7 @@ impl Source for MioListener {
match *self {
MioListener::Tcp(ref mut lst) => lst.deregister(registry),
#[cfg(unix)]
MioListener::Uds(ref mut lst) => {
let res = lst.deregister(registry);

// cleanup file path
if let Ok(addr) = lst.local_addr() {
if let Some(path) = addr.as_pathname() {
let _ = std::fs::remove_file(path);
}
}
res
}
MioListener::Uds(ref mut lst) => lst.deregister(registry),
}
}
}
Expand Down