diff options
| author | bndw <ben@bdw.to> | 2026-02-15 09:03:45 -0800 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2026-02-15 09:03:45 -0800 |
| commit | 9b97943680a9675809f942a75c0a8ea4747ce5bb (patch) | |
| tree | 379e9971202a47d7152bce5bb16addc6371ea763 /internal/metrics | |
| parent | 71f7a444398275923246e1bc8283938a63a8267a (diff) | |
fix: send OK response when AUTH required but not completed
Previously when an EVENT was received before authentication was
completed, the relay would send an AUTH challenge but silently drop
the EVENT without sending an OK response. This caused clients to
timeout waiting for the OK that never came.
Now the relay immediately sends OK false with "auth-required" message,
so clients know the EVENT was rejected and can retry after AUTH
completes.
Also optimized to parse the event JSON only once instead of twice.
Diffstat (limited to 'internal/metrics')
0 files changed, 0 insertions, 0 deletions
