Fix #155: bounded webhook ping #161
No reviewers
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!161
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-155"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bounded PingHook: appends the synthetic ping event and POSTs exactly that event through the normal postEvent path (URL + secret proof unchanged) instead of replaying the full backlog (up to 256 events x 10s POST) synchronously in the request goroutine, racing background delivery. Backlog and cursor stay with the background webhooks task; no-backlog ping still advances the cursor past the ping. Regression tests: 300-event backlog with 50ms/post sink returns promptly with exactly one ping POST and cursor unmoved; failure shapes (500, refused) stay (false, nil) with ring detail. internal/notify: gofmt/vet clean, -race green, coverage 96.0% (gate 95%). Doc: 06 §5.3 + Decisions entry.
PingHookruns full backlog in the request goroutine #155PingHookruns full backlog in the request goroutine #155PingHookruns full backlog in the request goroutine #155