-
Notifications
You must be signed in to change notification settings - Fork 628
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
MINA proxy handshake fix and proxy integration tests #833
Conversation
SSL SOCKS proxy test SOCKS proxy integration testing
@the-thing , thanks for the PR 👍 |
That's a different problem and not related to the current MINA issue. When MINA's HTTP proxy handler does the handshake, the proxy server can respond with "407 - Proxy Authentication Required" status code which will make MINA's handler to automatically switch and choose HTTP auth method based on the response (no-auth, ntlm, digest and basic) and populate headers. However, I assume this might not be the case for all HTTP proxy servers and some some of them might require you to know the auth method in advance and you must ensure that headers are already populated. Hence the fix is required. I think #631 looks reasonable, but we don't have HTTP tests yet so we don't know if this works. Also one thing about PR - the auth method is chosen based on properties provided, but I have a feeling that HTTP auth method should be configured explicitly. |
I suppose this is ready to merge? |
Yes, it is. No problem. BTW. Is VM_PIPE still supported and working? |
It was used for unit tests some time ago and works AFAICT. I only had the suspicion that it sometimes hung the connector during the acceptance test run where the connectorwas started and stopped in quick succession. But I never followed it up. |
I was just wondering if this should be removed at some point. I have a feeling that nobody uses it. |
Is it complicating the code much? I don't know if it has performance benefits when connecting intra VM. It was said it has but that was some years ago. |
I don't think so, but could be slightly cleaner. Functionally it might have some benefits, but I don't really know how this works. I was more thinking about removing so "SocketConnectProtocol" parameter goes away and we end up with less config. Still probably not a target for this PR. |
Maybe we could (if it is not already the case in the code) assume TCP as default so one does not explicitly need to define the parameter. |
Mina proxy handshake fix and proxy integration tests (cherry picked from commit 3427f08)
Changes