Skip to content

Commit

Permalink
fixed eaddrinuse reported as error (#1589)
Browse files Browse the repository at this point in the history
* fixed eaddrinuse reported as error

* fix array
  • Loading branch information
aviramha authored Jun 28, 2023
1 parent fba55f1 commit f176056
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/+eaddrinuse_not_error.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed reporting EADDRINUSE as an error
2 changes: 1 addition & 1 deletion mirrord/layer/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ mod ignore_codes {
/// Error codes from [`libc`] that are **not** hard errors, meaning the operation may progress.
///
/// Prefer using [`is_ignored_code`] instead of relying on this constant.
const IGNORE_ERROR_CODES: [i32; 2] = [libc::EINPROGRESS, libc::EAFNOSUPPORT];
const IGNORE_ERROR_CODES: [i32; 3] = [libc::EINPROGRESS, libc::EAFNOSUPPORT, libc::EADDRINUSE];

/// Checks if an error code from some [`libc`] function should be treated as a hard error, or
/// not.
Expand Down

0 comments on commit f176056

Please sign in to comment.