From antoniolo at gmail.com Tue Mar 11 21:20:53 2008 From: antoniolo at gmail.com (guilherme antoniolo) Date: Tue, 11 Mar 2008 22:20:53 -0300 Subject: [Rev-talk] callback on_connect is not being called. Message-ID: Greetings devs, I just ran across rev-project today. I wrote the following example in README: HOST = '127.0.0.1' PORT = 4321 server = Rev::TCPServer.new(ADDR, PORT) do |c| c.on_connect { puts "#{remote_addr}:#{remote_port} connected" } c.on_close { puts "#{remote_addr}:#{remote_port} disconnected" } c.on_read { |data| write data } end server.attach(Rev::Loop.default) puts "Echo server listening on #{HOST}:#{PORT}" Rev::Loop.default.run Everything seems to be running well, except the :on_connect callback is not being called anyhow! Thanks, Guilherme -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rev-talk/attachments/20080311/0efd078e/attachment.html From tony at medioh.com Tue Mar 11 23:55:58 2008 From: tony at medioh.com (Tony Arcieri) Date: Tue, 11 Mar 2008 21:55:58 -0600 Subject: [Rev-talk] callback on_connect is not being called. In-Reply-To: References: Message-ID: On Tue, Mar 11, 2008 at 7:20 PM, guilherme antoniolo wrote: > Everything seems to be running well, except the :on_connect callback is > not being called anyhow! > Yep, confirmed. Something's wrong. I'll take a look. -- Tony Arcieri medioh.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rev-talk/attachments/20080311/18c75936/attachment.html From tony at medioh.com Tue Mar 11 23:56:27 2008 From: tony at medioh.com (Tony Arcieri) Date: Tue, 11 Mar 2008 21:56:27 -0600 Subject: [Rev-talk] callback on_connect is not being called. In-Reply-To: References: Message-ID: On Tue, Mar 11, 2008 at 9:55 PM, Tony Arcieri wrote: > Yep, confirmed. Something's wrong. I'll take a look. > In the meantime the subclassing syntax is working correctly. -- Tony Arcieri medioh.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rev-talk/attachments/20080311/b04805b3/attachment.html