From 3f9cc4ead8c8ce48e477f523aa1db40918ab5c34 Mon Sep 17 00:00:00 2001 From: James Munns Date: Mon, 15 Jul 2024 16:25:42 +0000 Subject: [PATCH] Add error log when attempting to upgrade I was attempting to test upgrades on MacOS, and was a bit confused at the ECONNREFUSED error. Having this log would help others avoiding troubleshooting this until it is supported. Includes-commit: 6f80ce2f7a5dd97e174916d8efc4864366eca790 Replicated-from: https://github.com/cloudflare/pingora/pull/327 --- .bleep | 2 +- pingora-core/src/server/transfer_fd/mod.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.bleep b/.bleep index eb738a9..ac4d790 100644 --- a/.bleep +++ b/.bleep @@ -1 +1 @@ -a5e77a0c20967fd9ff223682be0fc043a6f35514 \ No newline at end of file +28f94f2a402bbf66341bdac8fa670caf5b7311e9 \ No newline at end of file diff --git a/pingora-core/src/server/transfer_fd/mod.rs b/pingora-core/src/server/transfer_fd/mod.rs index ee63ac0..c26d765 100644 --- a/pingora-core/src/server/transfer_fd/mod.rs +++ b/pingora-core/src/server/transfer_fd/mod.rs @@ -179,6 +179,7 @@ pub fn get_fds_from

(_path: &P, _payload: &mut [u8]) -> Result<(Vec, us where P: ?Sized + NixPath + std::fmt::Display, { + log::error!("Upgrade is not currently supported outside of Linux platforms"); Err(Errno::ECONNREFUSED) }