Skip to content

Close TCP Conn on error#605

Merged
zakird merged 8 commits into
mainfrom
phillip/602-tcp-conn-poison-on-timeout
May 28, 2026
Merged

Close TCP Conn on error#605
zakird merged 8 commits into
mainfrom
phillip/602-tcp-conn-poison-on-timeout

Conversation

@phillip-stephens
Copy link
Copy Markdown
Contributor

Description

On any sort of connection error (usually timeout, but could be something else), we'll now close the TCP connection.

This prevents what the issue opener observed where if a TCP connection timed out, and the server sent the reply delayed, that the TCP connection was now poisoned.

I added an integration test with a mock DNS server to test that alternating timed out server responses won't poison subsequent responses.

Related Issues

Closes #602

@phillip-stephens phillip-stephens marked this pull request as ready for review May 27, 2026 23:00
@phillip-stephens phillip-stephens requested a review from a team as a code owner May 27, 2026 23:00
@phillip-stephens phillip-stephens requested a review from zakird May 27, 2026 23:00
@zakird zakird enabled auto-merge (squash) May 28, 2026 21:17
@zakird zakird merged commit f01110c into main May 28, 2026
3 checks passed
@zakird zakird deleted the phillip/602-tcp-conn-poison-on-timeout branch May 28, 2026 21:18
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.

[Bug] Recycled TCP socket poisoned after query timeout

2 participants