wlanslovenija / PiplMesh

A social info portal for wireless networks.
http://dev.wlan-si.net/wiki/PiplMesh
Other
40 stars 19 forks source link

Remove disconnected users #289

Closed zupan closed 11 years ago

zupan commented 11 years ago

Users that are disconnected are not removed from online user list.

mitar commented 11 years ago

Oh, I thought you did a pull request. ;-)

mitar commented 11 years ago

It works for me quite nicely?

Maybe you have some stale data in the database. If you shutdown push and http server before closing all tabs with PiplMesh, this could happen.

zupan commented 11 years ago

I dropped my database and still have this problem. When i was writing new code i found out that "connections__in=([], None)," in frontend/tasks.py was causing problems. Also i think there is a problem with javascript for deleting disconnected users from user list.

Are disconnected users working fine in your environment?

mitar commented 11 years ago

How exactly are you testing this? So I delete database, I run all three daemons, I open PiplMesh in two different browsers. I see both users appear. I close one browser, that user disappears in the other browser.

zupan commented 11 years ago

I am doing exactly the same thing. I even created new virtualenv. I guess there is no reason for this issue if everything is fine on your end. But i think i wasn't the only one that had this problem.

mitar commented 11 years ago

OK. We can leave it open, maybe somebody else will be able to shed some light on it.

Sorry, but if I cannot reproduce it, I cannot help. So yes, I know that there are some issues if daemons go down, but if they run normally, connecting and disconnecting should work.

Which version of MongoDB you have?

zupan commented 11 years ago

I am using MongoDB version 1.8.2 on ubuntu. Maybe this is the reason.

mitar commented 11 years ago

I am using v2.0.6. I think we have in prerequisites written, that we need 2.0+ MongoDB:

https://github.com/wlanslovenija/PiplMesh/blob/master/docs/installation.rst#prerequisites

zupan commented 11 years ago

Sorry my mistake. I was also using v2.0.6, when i was on windows, but i wasn't careful when i switch to ubuntu.

mitar commented 11 years ago

So it works now for you on Ubuntu, too, when you switched to 2.0.6 there?

zupan commented 11 years ago

After upgrading to 2.0.4 online user list is working perfectly fine. Sorry for all the inconvenience.

mitar commented 11 years ago

Great! And no problem. Just that it works.