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

TLS ports hang if SSL handshake not performed #138

Open
jmschmaus opened this issue Jul 10, 2017 · 0 comments
Open

TLS ports hang if SSL handshake not performed #138

jmschmaus opened this issue Jul 10, 2017 · 0 comments

Comments

@jmschmaus
Copy link

jmschmaus commented Jul 10, 2017

logstash uses jruby-openssl.

We configured port 10069 for SSL input to logshipper.

The jruby-openssl implementation (SSLSocket.java) insists on completing the SSL handshake before cloning a new thread to handle the connection. If a non-TLS process connects to the TLS port, it is hung and unusable for future TLS sessions.

You can reproduce this by running nc localhost 10059 <-- or whatever logstash port is configured for TLS

If you leave nc running, openssl s_client -connect localhost:10059 will hang in CONNECTED, and not be able to establish a TLS session. Neither will any other external clients wishing to send events or logs to logstash.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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

1 participant