summaryrefslogtreecommitdiff
path: root/rpm/rpm.go
diff options
context:
space:
mode:
Diffstat (limited to 'rpm/rpm.go')
-rw-r--r--rpm/rpm.go15
1 files changed, 14 insertions, 1 deletions
diff --git a/rpm/rpm.go b/rpm/rpm.go
index 0f51461..ff483ff 100644
--- a/rpm/rpm.go
+++ b/rpm/rpm.go
@@ -249,13 +249,26 @@ func ResponsivenessProber[BucketType utilities.Number](
(*selfProbeConnection).Client(),
selfProbeConfiguration.URL,
selfProbeConfiguration.Host,
- probeDirection,
utilities.Conditional(probeDirection == lgc.LGC_DOWN, probe.SelfDown, probe.SelfUp),
probeCount,
captureExtendedStats,
debugging,
)
if err != nil {
+ // We may see an error here because the prober context was cancelled
+ // and requests were attempting to be sent. This situation is not an
+ // error (per se) so we will not log it as such.
+
+ if proberCtx.Err() != nil {
+ if debug.IsDebug(debugging.Level) {
+ fmt.Printf(
+ "(%s) Failed to send a probe (id: %v) because the prober context was cancelled.\n",
+ debugging.Prefix,
+ probeCount,
+ )
+ }
+ return
+ }
fmt.Printf(
"(%s) There was an error sending a self probe with Id %d: %v\n",
debugging.Prefix,