Skip to content

Test: disable pooling for OC2 OAuth destination fixtures - #849

Closed
antauth-alfonso[bot] wants to merge 1 commit into
mainfrom
test/oc2-loopback-nopool
Closed

antauth-alfonso[bot] wants to merge 1 commit into
mainfrom
test/oc2-loopback-nopool

Conversation

@antauth-alfonso

@antauth-alfonso antauth-alfonso Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Test-only. Bun reused a pooled socket to a stopped loopback listener (ECONNRESET). Forced same-port reuse: 50/50 failed before, 0/50 after.


Summary by cubic

Test-only. Disables connection pooling on the physical fetch in the OC2 OAuth destination fixture. Bun was reusing a pooled socket to a stopped loopback listener, causing flaky ECONNRESET failures when a successor rebound the same port (50/50 failures before). Passing keepalive: false eliminates pooling and stabilizes the test without changing request assertions or product code.

Written for commit 79fff08. Summary will update on new commits.

View guided diff Turn on auto-fix

The test helper sends real POSTs to short-lived loopback listeners. If a successor rebinds a previous listener’s port, Bun can reuse the old connection before noticing it closed. Pass the existing guarded-fetch opt-out on the physical send, without changing the request assertions or product code.
@antauth-alfonso

Copy link
Copy Markdown
Author

Squash-merged to main as f3afd74.

@antauth-alfonso antauth-alfonso Bot closed this Nov 18, 2026
@ualtinok
ualtinok deleted the test/oc2-loopback-nopool branch November 18, 2026 18:14
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