Skip to content

fix(codegen): reconnect Go GraphQL subscriptions - #63

Merged
nick-csu merged 1 commit into
pre-releasefrom
fix/go-graphql-subscription-reconnect
Aug 31, 2026
Merged

fix(codegen): reconnect Go GraphQL subscriptions#63
nick-csu merged 1 commit into
pre-releasefrom
fix/go-graphql-subscription-reconnect

Conversation

@nick-csu

Copy link
Copy Markdown
Contributor

Summary

  • retry generated Go GraphQL subscription writes when the shared WebSocket closes during a write
  • prevent stale socket reader goroutines from reconnecting over a newer active connection
  • add a generator regression assertion for the reconnect behavior

Cause

The upgraded GraphQL WebSocket server exposed a race after the intentional SDK resilience disconnect: the reader was waiting for the client mutex while the next subscription reused a stale non-nil socket and failed with websocket: close sent.

Verification

  • codegen tests: 244 passed
  • full coverage: 13 tasks passed
  • format, lint, and full build passed
  • Go-only container SDK integration: 2 passed, 0 failed, including forced GraphQL reconnect

@nick-csu
nick-csu merged commit b557143 into pre-release Aug 31, 2026
5 checks passed
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.

1 participant