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

Problems with jruby and I think with TLS in Jruby #109

Open
d1egoaz opened this issue Mar 28, 2013 · 1 comment
Open

Problems with jruby and I think with TLS in Jruby #109

d1egoaz opened this issue Mar 28, 2013 · 1 comment

Comments

@d1egoaz
Copy link

d1egoaz commented Mar 28, 2013

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
Copy link
Member

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

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

2 participants