Skip to content

Prevent event listeners from missing the first POST_EVENT. - #67

Open
MrTeeett wants to merge 1 commit into
mainfrom
55-examplemanager_addeventlistener-intermittently-times-out-after-post_event
Open

MrTeeett wants to merge 1 commit into
mainfrom
55-examplemanager_addeventlistener-intermittently-times-out-after-post_event

Conversation

@MrTeeett

Copy link
Copy Markdown
Contributor

Wait for the initial event count and for Firebird to confirm the next subscription with that count before AddEventListener returns success. This preserves events posted immediately after registration.

Bind each registration to its connection and clean it up on failure. Finish in-flight requests so a WaitForEvent timeout leaves the caller's connection and active transaction usable.

Wait for the initial event count and for Firebird to confirm the next
subscription with that count before AddEventListener returns success.
This preserves events posted immediately after registration.

Bind each registration to its connection and clean it up on failure.
Finish in-flight requests so a WaitForEvent timeout leaves the caller's connection and active transaction usable.
@MrTeeett MrTeeett added this to the v0.9.0 milestone Nov 27, 2026
@MrTeeett
MrTeeett requested a review from RozmiDan November 27, 2026 12:14
@MrTeeett MrTeeett self-assigned this Nov 27, 2026
@MrTeeett MrTeeett added the confirmed Confirmed bug label Nov 27, 2026
@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: Go

Go / code-coverage/gotest

main be26d11 55-examplemanager_ad... 4eb2706 +/-
79% 79% 0%
View coverage of the 10 most impacted files.
File main be26d11 55-examplemanager_ad... 4eb2706 +/-
stdlib/sql.go 83% 82% -1%
fbconn/fbconn.go 78% 78% 0%
stdlib/sql_go1.27.go 81% 84% +3%
fbevent/manager.go 80% 84% +4%
fbevent/lifecycle.go 80% 85% +5%
fbconn/events.go 55% 62% +7%
fbconn/events_channel.go 65% 73% +8%
fbevent/wait_listener.go 86% 96% +10%
fbevent/wait.go 67% 90% +23%
internal/eventctx/queue.go 0% 80% +80%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

confirmed Confirmed bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ExampleManager_AddEventListener intermittently times out after POST_EVENT

1 participant