Skip to content

Close connections from cancelled first checkouts - #408

Open
ruslandoga wants to merge 2 commits into
masterfrom
rd/fix-issue-381
Open

Close connections from cancelled first checkouts#408
ruslandoga wants to merge 2 commits into
masterfrom
rd/fix-issue-381

Conversation

@ruslandoga

Copy link
Copy Markdown
Collaborator

Record a newly opened Mint connection in the NimblePool worker state before transferring socket ownership. This lets worker termination close the connection when the initial borrower is cancelled before check-in. Add a regression test that waits for the HTTP request, kills the borrower, and verifies the TCP socket closes.

Fixes #381.

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.

Cancelled first checkouts leak TCP sockets

1 participant