Replies: 2 comments 5 replies
-
Hi @chrjohn, Maybe you can include integration tests that starts a mock proxy with and without SSL and run tests against it. I've used https://mock-server.com/proxy/running_mock_server_proxy.html which has lots of features that may be useful |
Beta Was this translation helpful? Give feedback.
-
I think SSL with proxy is currently broken. This is what is happening as far as I understand. This is the filter chain used by MINA when using SSL + PROXY HeadFilter ProxyFilter fails for the first time, because of missing proxy handler. java.lang.IllegalStateException Proxy handler is missing, because it is added during sessionCreated chain stage org.apache.mina.core.filterchain.IoFilterAdapter#sessionCreated / org.apache.mina.proxy.filter.ProxyFilter#sessionCreated SSLfilter chain executes onPostAdd -> onConnected -> and then tries to do proxy handshake which fails. Surprisingly after that it tries to do the proxy handshake again and proxy server sees it (still no SSL which is good).
And responds with CD = 90 / 5a (request granted)
But proxy server response never arrives and is not processed by MINA. |
Beta Was this translation helpful? Give feedback.
-
Hi,
is anyone able to conduct tests against a proxy? Preferrably with and without SSL enabled? In #441 I created a pull request which is compiled against MINA 2.2.x which overhauled the SSL support. To make it compile I needed to do some minor changes. But I cannot test against a proxy.
Is anyone of you guys able to help me out with that?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions