diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-27 13:56:45 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-27 20:38:23 +0000 |
| commit | a1573c6018c2e81795dc87d36011604dfed80936 (patch) | |
| tree | 911eac8b14a0ea094a47fe7a7752b0d776f67ecb /src/git/handlers.rs | |
| parent | c9ab6aef228f0a77b2997cfc6bf83d5761ab7e08 (diff) | |
fix: prevent git protocol errors from triggering naughty list
Change protocol error detection to only match WebSocket-specific errors
(websocket, invalid frame) instead of generic 'protocol' keyword which
was incorrectly catching transient git protocol errors.
Git protocol errors like 'fatal: protocol error: bad line length' are
transient network issues that should use backoff/retry, not permanent
naughty list blocking. Only WebSocket/Nostr protocol violations indicate
persistent infrastructure problems.
Fixes production false positive:
- relay.ngit.dev: git protocol error + remote warning misclassified
Add production test cases for git protocol errors and warning combinations.
Diffstat (limited to 'src/git/handlers.rs')
0 files changed, 0 insertions, 0 deletions