Skip to content

Commit

Permalink
Merge pull request #214 from Tim-Zhang/ignore-close-fd-error-0.5
Browse files Browse the repository at this point in the history
[0.5.0] Ignore close fd error
  • Loading branch information
lifupan authored Oct 24, 2023
2 parents 29560c8 + c47314b commit d9c3068
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 @@ -346,7 +346,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 d9c3068

Please sign in to comment.