trying to integrate it within a larger rails app. I also came across
On 7 Mai, 20:40, Vito Botta <
v...@botta.name> wrote:
> Hi Guillaume,
>
> thanks to you! BrB is very useful indeed and I am using it quite often actually.
> I am currently looking to replace some communication between several machines that others have implemented in a client-server fashion with Sinatra, with BrB based communication since it's a lot faster and lighter.
>
> I did find a very easy workaround (based in fact on the :unregister) for the automatic reconnection which works great, but I will also try your suggestion regarding EventMachine's reconnect to see if it works better. I have forked the project and will try this one first and then send a pull request.
> I need to check how to add relevant specs first according to how you've already written some existing specs.
>
> There's actually another change I have made in my code but I could instead move into BrB itself since it could also be useful: keeping a track of the active clients, and recognising which clients disconnect. I find this useful since it can help find out the status of clients when you have (like in my case) many clients on many computers, interacting with a BrB server.
>
> I'll let you know how this works and if I can move this functionality into BrB in a way you agree with :)
> In the meantime, thanks a lot for BrB. The first time I used it was already ~one year ago and it has helped implement in a much better way a number of things, and since then I have used a number of times again because I work on a lot of projects with distributed processing and stuff like that. So I should have come long before to thank you since it saved me the time to code something similar ;)
>
> merci beaucoup!
> Vito
>
>
>
> On Friday, 6 May 2011 at 23:22, Guillaume Luccisano wrote:
> > Hi Vito,
>
> > I'm glad some people are using BrB ! So thanks for that !
> > But long time I haven't used the gem :/ But from memory yes, there is no reconnect functionnality.
>
> > I the client doesn't raise, you can might handle it using the callback :unregister:
>
> > @core = BrB::Tunnel.create(self, p.ip) do |type, tunnel|
> > if type == :unregister
> > Error.create(:backtrace => server_status, :type => 'Connection to core lost', :url => "#...@proc.type}:#...@proc.port}-#{server_id}")