Skip to content

fix: tunnel.Bind() doesnt close connections#289

Open
myselfBZ wants to merge 1 commit into
azimjohn:masterfrom
myselfBZ:connection-ownership-fix
Open

fix: tunnel.Bind() doesnt close connections#289
myselfBZ wants to merge 1 commit into
azimjohn:masterfrom
myselfBZ:connection-ownership-fix

Conversation

@myselfBZ

Copy link
Copy Markdown

tunnel.Bind() no longer closes connections because any function that's using it already has deferred functions that close connections.
With this approach, tunnel.Bind()'s sole responsibility is to copy data from src to dst, it doesn't own connections, only transfers data.

@azimjohn

Copy link
Copy Markdown
Owner

Thanks for the contribution!
May I ask if you have tested the changes?

@myselfBZ

Copy link
Copy Markdown
Author

Thanks for the contribution! May I ask if you have tested the changes?

All unit tests passed, but i couldn't do an integration test cause it was hard to host it locally.

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