如果非SSL连接以SSL端口为目标,JRuby SSL绑定将创建断开的线程

如果非SSL连接以SSL端口为目标,JRuby SSL绑定将创建断开的线程,ssl,jruby,puma,Ssl,Jruby,Puma,一旦我使用puma运行SSL服务器: bundle exec puma remote-webapp/config.ru -b 'ssl://0.0.0.0:8888?keystore=remote-webapp/keystore.jks&keystore-pass=123456' 然后尝试在https上使用http,出现以下错误: vendor/jruby/1.9/gems/puma-2.9.2-java/lib/puma/thread_pool.rb:56" java.lang.Ru

一旦我使用puma运行SSL服务器:

bundle exec puma remote-webapp/config.ru -b 'ssl://0.0.0.0:8888?keystore=remote-webapp/keystore.jks&keystore-pass=123456'
然后尝试在https上使用http,出现以下错误:

vendor/jruby/1.9/gems/puma-2.9.2-java/lib/puma/thread_pool.rb:56" java.lang.RuntimeException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
问题是,特定的线程会变成僵尸,永远不会被回收。我有没有办法阻止这种事情发生