Skip to content

Commit

Permalink
don't report error on notimplemented, might fix go crash (#3045)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha authored Jan 28, 2025
1 parent b2ac7a1 commit e86da43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/3044.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
don't report error on notimplemented, might fix go crash
4 changes: 4 additions & 0 deletions mirrord/layer/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ impl From<HookError> for i64 {
HookError::SocketUnsuportedIpv6 => {
info!("{fail}")
}
HookError::ResponseError(ResponseError::NotImplemented) => {
// this means we bypass, so we can just return to avoid setting libc.
return -1;
}
HookError::ProxyError(ref err) => {
graceful_exit!(
r"Proxy error, connectivity issue or a bug.
Expand Down

0 comments on commit e86da43

Please sign in to comment.