I have reproduceable bug with faye & firefox13. When page is refreshed multiple times, all websocket connections are left as ESTABLISHED (looked with netstat). Page close does not help. Connections exists until browsed closed. Is there any way to hang up those on server side?
1. If i open multiple tabs in FF, then close those those - everything seems ok.
2. If i refresh one tab - ghost connections appears, that don't disappear, when i close tab
"netstat -n | grep YOUR_IP" (under linux)
State is ESTABLISHED - forever, until browser completely closed. Not TIMED_OUT or WAIT_FIN2
I think, you can easily reproduce those your self, with firefox & nodejs. Because issue exists in SocksJS tracker, and mozilla bugtracker.
https://bugzilla.mozilla.org/show_bug.cgi?id=696085
https://github.com/sockjs/sockjs-client/issues/28
What help do you need to reproduce problem? Under ubuntu 12.04, run nodejs app, where client subscribe to some channels. Open in filerox and refresh tab several time. You will see, that connections, related to http files will expires soon, but each reload will increase ESTABLISHED connections count by 1.
On 2 July 2012 10:46, Vitaly Puzrin <vit...@rcdesign.ru> wrote:What help do you need to reproduce problem? Under ubuntu 12.04, run nodejs app, where client subscribe to some channels. Open in filerox and refresh tab several time. You will see, that connections, related to http files will expires soon, but each reload will increase ESTABLISHED connections count by 1.I still can't reproduce this.
By the way, "online connections" counter is correct (it was also correct before patches). It does not increase after reload. Sorry, that missed such info earlier.
https://github.com/fontello/fontello/blob/master/lib/init/server/realtime.js#L189 - implementation, just 2 lines,
So problem is, that faye itself correctly tracks connections on app level (connect/disconnect events are ok), but fails to kill ws resources. Can it be helpeful?
I mean, that faye correctly counts real active connections, and ghost one does not affect this counter. When i refresh page in firefox,
"online user" counter stays intact, while ghost connections increase.
Ok, James, I see, that it would be more productive to make a minimalistic sample for you, that will help to reproduce problem on your side.
Can we freeze it for 1 week? I'd like to finish some of our internal tasks before.