Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"handleHttps" Will cause connection leaks #451

Closed
lujinda opened this issue Sep 13, 2021 · 2 comments
Closed

"handleHttps" Will cause connection leaks #451

lujinda opened this issue Sep 13, 2021 · 2 comments

Comments

@lujinda
Copy link

lujinda commented Sep 13, 2021

		if targetOK && clientOK {
			go copyAndClose(ctx, targetTCP, proxyClientTCP)
			go copyAndClose(ctx, proxyClientTCP, targetTCP)
		}

If the client actively closes the connection, and the remote server does not write any data, and the inactivity timeout is not configured. At this time, only the first copyAndClose will end (io.EOF occurs on the client).

@lujinda lujinda changed the title handleHttps Will cause connection leaks "handleHttps" Will cause connection leaks Sep 13, 2021
@ErikPelli
Copy link
Collaborator

Can you open a pull request to fix this issue?

@ErikPelli
Copy link
Collaborator

Fixed by #256

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

No branches or pull requests

2 participants