Skip to content

fix(BRIDGE-382): properly close context if Start gets called multiple times#456

Merged
annatar merged 1 commit into
devfrom
fix/bridge-382
Mar 12, 2026
Merged

fix(BRIDGE-382): properly close context if Start gets called multiple times#456
annatar merged 1 commit into
devfrom
fix/bridge-382

Conversation

@annatar

@annatar annatar commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

If gluon Serve is called twice on the same server instance RollingCounter overrides the context and context cancel, and since we use a RollingCounter in Bridge this causes a deadlock which can indefinitely block.

@annatar annatar requested a review from ElectroNafta March 11, 2026 14:29
@annatar annatar changed the title fix(BRIDGE-389): properly close context if Start gets called multiple times fix(BRIDGE-382): properly close context if Start gets called multiple times Mar 11, 2026
Comment thread imap/connectioncounter/connectioncounter.go
@ElectroNafta

Copy link
Copy Markdown
Contributor

It would be cleaner if we handle it over in server.Serve instead. That is the caller, and it makes the cancel explicit.

@annatar annatar merged commit c5fe60f into dev Mar 12, 2026
7 of 8 checks passed
@annatar annatar deleted the fix/bridge-382 branch March 12, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants