Skip to content

Deadlock when using SSL in combination with SOCKS proxy - #84

Draft
the-thing wants to merge 3 commits into
apache:2.2.Xfrom
the-thing:ssl-proxy-deadlock
Draft

the-thing wants to merge 3 commits into
apache:2.2.Xfrom
the-thing:ssl-proxy-deadlock

Conversation

@the-thing

Copy link
Copy Markdown
Member

While updating MINA 2.2.10 in QuickFIXj we encountered a deadlock in end-to-end SOCKS proxy tests.

quickfix-j/quickfixj#1347
quickfix-j/quickfixj#1348

It looks like this was introduced by #77 however all combinations of tests fail with a deadlock, which also means that there is an existing problem with org.apache.mina.filter.ssl.SSLHandlerG0 implementation.

Currently I was only able to confirm SSL + SOCKS proxy combination failures, but some of the failures in mentioned QuickFIXj PRs look suspicious. It will be easier to investigate if we solve this problem first.

Notes

  • this is just a test proving there is a problem
  • SOCKS proxy server was slopped out by AI, but it seems to do the thing (I'm happy to replace it with any other embedded SOCKS proxy server you can recommend - in QuickFIXj we use Netty's which would be kind of awkward to bring to MINA 👀)

@the-thing
the-thing requested review from elecharny and a balanced review from Copilot and removed request for Copilot October 20, 2026 09:19
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.

1 participant