Skip to content

Commit

Permalink
sync-server: Ignore close fd error
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Zhang <[email protected]>
  • Loading branch information
Tim-Zhang committed Oct 23, 2023
1 parent 92cfa7f commit 8bdc174
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/sync/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,14 @@ impl Server {
.map(|mut cn| {
cn.handler.take().map(|handler| {
handler.join().unwrap();
close(fd).unwrap();
close(fd)
.map_err(|e| {
warn!(
"close connection fd: {} failed: {:?}",
fd, e
);
})
.ok();
})
});
}
Expand Down

0 comments on commit 8bdc174

Please sign in to comment.