Problems with jruby and I think with TLS in Jruby
Opened this issue · 1 comments
d1egoaz commented
Hi
I'm trying to use blather in jruby 1.7.3
setup 'username', 'password', 'talk.google.com', 5222
When I trying a connection to google there is a delay in
DEBUG -- : RECEIVING (proceed) <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
and then i got disconnected
this is the log, it loops with the following messages:
Reconnectting...
D, [2013-03-18T19:33:12.000000 #10568] DEBUG -- : USING JID: xxxx
D, [2013-03-18T19:33:12.103000 #10568] DEBUG -- : SENDING: (/Users/xxx/.rbenv/versions/jruby-1.7.3/lib/ruby/gems/shared/gems/blather-0.8.3/lib/blather/stream/client.rb:12:in `start') <stream:stream to='xxx.com' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
D, [2013-03-18T19:33:12.211000 #10568] DEBUG -- : RECEIVING (stream) <stream:stream from="xxx.com" id="CF27452EA7A8E81F" version="1.0" xmlns:stream="http://etherx.jabber.org/streams"/>
D, [2013-03-18T19:33:12.219000 #10568] DEBUG -- : RECEIVING (features) <stream:features xmlns:stream="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-OAUTH2</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism></mechanisms></stream:features>
D, [2013-03-18T19:33:12.223000 #10568] DEBUG -- : SENDING: (/Users/xxx/.rbenv/versions/jruby-1.7.3/lib/ruby/gems/shared/gems/blather-0.8.3/lib/blather/stream/features/tls.rb:16:in `receive_data') <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
D, [2013-03-18T19:33:12.331000 #10568] DEBUG -- : RECEIVING (proceed) <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
Disconnected :(
Reconnectting...
...
Disconnected :(
...
Same code works in ruby 1.9.3-p392
Tks for your help
benlangfeld commented
Could be related to this: eventmachine/eventmachine#180
Man do I want to get Blather off EventMachine. Any contributions here are welcome: https://github.com/adhearsion/blather/tree/feature/celluloid