mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-12-06 11:03:52 +00:00
fix(security): audit run-4 fixes and run-3 leftovers (#26)
Corrects passthrough metering, the cost gate, credential redaction, reload drain, response headers and the discovery cap.
This commit is contained in:
+3
-1
@@ -289,10 +289,12 @@ func (wb *watchdogBody) fire() {
|
||||
return
|
||||
}
|
||||
atomic.StoreInt32(&wb.timedOut, 1)
|
||||
wb.cancel()
|
||||
// Record before cancelling: cancel unblocks a parked Read, and its
|
||||
// caller must find the failure already recorded.
|
||||
if wb.onTimeout != nil {
|
||||
wb.onTimeout(nil, wb.timeoutError())
|
||||
}
|
||||
wb.cancel()
|
||||
}
|
||||
|
||||
// timeoutError builds the error Read returns once timedOut is set, and
|
||||
|
||||
Reference in New Issue
Block a user