Comments (8)
Very interesting. Do you get this issue with other browsers?
from now.
The error was with firefox 3.6.10 and after testing I can say the nowjs
example does work with chrome.
After some idle time this is printed out at the server:
(node) warning: possible EventEmitter memory leak detected. 11 listeners
added. Use emitter.setMaxListeners() to increase limit.
Trace:
at Socket. (events.js:123:17)
at [object Object]. (/home/john/local/node/lib/node/.npm/
socket.io/0.6.16/package/lib/socket.io/client.js:83:20)
at [object Object]._onConnect (/home/john/local/node/lib/node/.npm/
socket.io/0.6.16/package/lib/socket.io/transports/xhr-polling.js:23:35)
at [object Object].check (/home/john/local/node/lib/node/.npm/
socket.io/0.6.16/package/lib/socket.io/listener.js:77:12)
at Server. (/home/john/local/node/lib/node/.npm/
socket.io/0.6.16/package/lib/socket.io/listener.js:33:14)
at Server.emit (events.js:67:17)
at HTTPParser.onIncoming (http.js:1102:12)
at HTTPParser.onHeadersComplete (http.js:108:31)
at Socket.ondata (http.js:1001:22)
at Socket._onReadable (net.js:675:27)
(node) warning: possible EventEmitter memory leak detected. 11 listeners
added. Use emitter.setMaxListeners() to increase limit.
Trace:
at Socket. (events.js:123:17)
at [object Object]. (/home/john/local/node/lib/node/.npm/
socket.io/0.6.16/package/lib/socket.io/client.js:70:19)
at [object Object]._onConnect (/home/john/local/node/lib/node/.npm/
socket.io/0.6.16/package/lib/socket.io/transports/xhr-polling.js:23:35)
at [object Object].check (/home/john/local/node/lib/node/.npm/
socket.io/0.6.16/package/lib/socket.io/listener.js:77:12)
at Server. (/home/john/local/node/lib/node/.npm/
socket.io/0.6.16/package/lib/socket.io/listener.js:33:14)
at Server.emit (events.js:67:17)
at HTTPParser.onIncoming (http.js:1102:12)
at HTTPParser.onHeadersComplete (http.js:108:31)
at Socket.ondata (http.js:1001:22)
at Socket._onReadable (net.js:675:27)
So this is probably a whole other issue.
from now.
Hey ubershmekel,
Can you try using the latest version of nowjs in Github/npm. We rolled out several crucial bug fixes that may or may not fix this issue. If you still have it with the latest npm version (v0.3.1) then I'll have a better idea of what is going on.
Thanks,
Eric
from now.
Hi Eric,
I was having the same issue as ubershmekel. I just npm'd the latest code and the original error has now gone away, but a new one has just presented itself. It is now possible to create one connection to the nowjs server, but not a second. Additionally, the first connection reports the following:
26 Mar 12:01:33 - socket.io ready - accepting connections
26 Mar 12:01:46 - Initializing client with transport "xhr-multipart"
26 Mar 12:01:46 - Client 3002093662507832 connected
Joined: Shane
26 Mar 12:01:48 - Initializing client with transport "flashsocket"
26 Mar 12:01:48 - Client 20963806682266295 connected
Joined: Shane
This results in each message sent to the server from the first client being duplicated in the messages container. I hope that helps!
Shane
from now.
Hey Shane,
What browser are you using?
Thanks,
Eric
On Sat, Mar 26, 2011 at 12:10 PM, swalkergibson
[email protected]
wrote:
Hi Eric,
I was having the same issue as ubershmekel. I just npm'd the latest code and the original error has now gone away, but a new one has just presented itself. It is now possible to create one connection to the nowjs server, but not a second. Additionally, the first connection reports the following:
26 Mar 12:01:33 - socket.io ready - accepting connections
26 Mar 12:01:46 - Initializing client with transport "xhr-multipart"
26 Mar 12:01:46 - Client 3002093662507832 connected
Joined: Shane
26 Mar 12:01:48 - Initializing client with transport "flashsocket"
26 Mar 12:01:48 - Client 20963806682266295 connected
Joined: ShaneThis results in each message sent to the server from the first client being duplicated in the messages container. I hope that helps!
Shane
Reply to this email directly or view it on GitHub:
#21 (comment)
510-691-3951
EECS Student at UC Berkeley
http://ericzhang.com
from now.
Firefox 3.6.3 on Ubuntu 9.04
from now.
hi swalkergibson,
We have been able to reproduce the double connection bug and we're investigating thoroughly now. The cause is the name prompt window in the hello world example, it causes weird behavior because it blocks the javascript thread. This is a completely solvable bug and we'll be working on it.
Thanks,
Eric
from now.
Hey guys, the double connection issue has been reported here: socketio/socket.io#128
Closing now.
from now.
Related Issues (20)
- installation fail :( HOT 3
- Can not read the property of 'ressource' undefined HOT 1
- No dev in six months. What is the future of NowJS? HOT 13
- Now module Installation failed ..... throwing error in windows
- npm install now ..... throwing error HOT 1
- Not working with Dojo due to Socket.io-client
- Implementing chat module by using Nowjs HOT 6
- now.js and node autocluster core module
- Issue in limit of sending message in chat
- /nowjs/now.js ??
- website HOT 7
- Connecting to nodejs on http from https site HOT 1
- cannot finde module '../build/Release/nodeproxy.node'
- iOS app crashed in release mode while using Nowjs library
- Now doesn't work with latest sockets.io HOT 2
- Does not work with angular-cli: content.charCodeAt is not a function
- possible spam HOT 1
- Error: Cannot find module 'now' HOT 3
- Error: Cannot find module 'now'
- http://www.nowjs.com is not correct HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from now.