celluloid / reel

UNMAINTAINED: See celluloid/celluloid#779 - Celluloid::IO-powered web server
https://celluloid.io
MIT License
596 stars 87 forks source link

SSLServer crashing due to type casting? #89

Closed digitalextremist closed 11 years ago

digitalextremist commented 11 years ago
TypeError: can't convert Celluloid::IO::TCPServer into Integer
    org/jruby/ext/openssl/SSLContext.java:236:in `setup'
    org/jruby/ext/openssl/SSLSocket.java:145:in `initialize'
    /usr/local/rvm/gems/jruby-1.7.4/bundler/gems/celluloid-io-43994f60e81b/lib/celluloid/io/ssl_socket.rb:15:in `initialize'
    /usr/local/rvm/gems/jruby-1.7.4/bundler/gems/celluloid-io-43994f60e81b/lib/celluloid/io/ssl_server.rb:25:in `accept'
    /mu/penultimatix/reel/lib/reel/ssl_server.rb:30:in `run'
    org/jruby/RubyKernel.java:1489:in `loop'
    /mu/penultimatix/reel/lib/reel/ssl_server.rb:28:in `run'
    org/jruby/RubyBasicObject.java:1730:in `__send__'
    org/jruby/RubyKernel.java:1932:in `public_send'
    /usr/local/rvm/gems/jruby-1.7.4/bundler/gems/celluloid-ad503d06e9b0/lib/celluloid/calls.rb:25:in `dispatch'
    /usr/local/rvm/gems/jruby-1.7.4/bundler/gems/celluloid-ad503d06e9b0/lib/celluloid/calls.rb:122:in `dispatch'
    /usr/local/rvm/gems/jruby-1.7.4/bundler/gems/celluloid-ad503d06e9b0/lib/celluloid/actor.rb:322:in `handle_message'
    /usr/local/rvm/gems/jruby-1.7.4/bundler/gems/celluloid-ad503d06e9b0/lib/celluloid/actor.rb:416:in `task'
    /usr/local/rvm/gems/jruby-1.7.4/bundler/gems/celluloid-ad503d06e9b0/lib/celluloid/tasks.rb:55:in `initialize'
    /usr/local/rvm/gems/jruby-1.7.4/bundler/gems/celluloid-ad503d06e9b0/lib/celluloid/tasks.rb:47:in `initialize'
    /usr/local/rvm/gems/jruby-1.7.4/bundler/gems/celluloid-ad503d06e9b0/lib/celluloid/tasks/task_fiber.rb:13:in `create'

This was after moving to a recent commit, I will track down which one.

tarcieri commented 11 years ago

This is probably another case that needs #to_io

digitalextremist commented 11 years ago

Roger, finding location and patching.

digitalextremist commented 11 years ago

Actually this was my fault. Set verify_mode to nil by accident.