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

Accommodate tunneling proxies that close the connection after an auth challenge. #2467

Merged
merged 1 commit into from
Apr 8, 2016

Conversation

dave-r12
Copy link
Collaborator

@dave-r12 dave-r12 commented Apr 7, 2016

A fix for #2426. This was mainly a rejiggering of the existing connection code.


// The proxy decided to close the connection after an auth challenge. We need to create a new
// connection, but this time with the auth credentials.
closeQuietly(rawSocket);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: also set rawSocket to null?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, done.

@swankjesse
Copy link
Collaborator

LGTM

This is brilliant. Very nice.

@axel3rd
Copy link

axel3rd commented Apr 13, 2016

@dave-r12 / @swankjesse : Many thanks to you guys 😆

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.

3 participants