negativecode / vines

An XMPP chat server for Ruby.
http://www.getvines.org/
MIT License
470 stars 75 forks source link

jruby #10

Closed paulhsu closed 12 years ago

paulhsu commented 12 years ago

Hi, How do I use jruby to run vines?

jruby is 1.9.2 compatible, doesn't it?

dgraham commented 12 years ago

Unfortunately, EventMachine doesn't work well enough on JRuby for Vines to run.

paulhsu commented 12 years ago

You mean the performance is not good.

But my question is how to change to jruby?

Any configuration I should change?

dgraham commented 12 years ago

It's not a performance problem, the Java version of EventMachine doesn't implement the same features as the native C version. In the past, there were problems with SSL encryption in the Java version.

Out of curiosity, I just tried JRuby again and got this error. The server immediately dies because of a missing method in the Java code.

$ jruby --1.9 -S gem install vines jruby-openssl $ jruby --1.9 -S vines init wonderland.lit $ cd wonderland.lit/ $ jruby --1.9 -S vines start WARNING: could not load hiredis extension, using (slower) pure Ruby implementation. [2012-04-23T19:05:49Z] INFO -- vines: XMPP server started [2012-04-23T19:05:49Z] INFO -- vines: Accepting client connections on 0.0.0.0:5222 [2012-04-23T19:05:49Z] INFO -- vines: Accepting server connections on 0.0.0.0:5269 [2012-04-23T19:05:49Z] INFO -- vines: Accepting http connections on 0.0.0.0:5280 [2012-04-23T19:05:49Z] INFO -- vines: Accepting component connections on 0.0.0.0:5347 undefined method `get_sockname' for EventMachine:Module [2012-04-23T19:05:50Z] FATAL -- vines: XMPP server stopped

Lesiuk commented 12 years ago

https://github.com/eventmachine/eventmachine/commit/f0e4aa98ee2d3b8904ef7d83dbde73cb5b2ec58f