Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory leak warning when client use xhr-polling #244

Closed
matiasfha opened this issue Jun 9, 2011 · 0 comments
Closed

memory leak warning when client use xhr-polling #244

matiasfha opened this issue Jun 9, 2011 · 0 comments

Comments

@matiasfha
Copy link

I create a little application using nodejs - socket.io - thrift and
couchdb
The main idea is: Receive data from a C++ client using Thrift [1] and
send this data to the webpage using socket.io.
The C++ client put data into couchdb and nodejs+couchdb notify the
change of the data in db into the webpage.
I test this with Chrome and works very good. Now i test using Android
browser on my Galaxy S and in a X-mini pro (Froyo and Eclair) .. and
when this clients connects this message appear:

7 Jun 16:49:52 - Initializing client with transport "xhr-polling" 
7 Jun 16:49:52 - Client 7502372420858592 connected 
(node) warning: possible EventEmitter memory leak detected. 11 
listeners added. Use emitter.setMaxListeners() to increase limit. 
Trace: 
    at Client.<anonymous> (events.js:126:17) 
    at [object Object]._queueRequest (/Users/msdark/Development/ 
       Trabajo/Stream/service/gen-nodejs/lib/node-couchdb/lib/couchdb.js: 157:16) 
    at [object Object].request (/Users/msdark/Development/Trabajo/ 
        Stream/service/gen-nodejs/lib/node-couchdb/lib/couchdb.js:270:15) 
    at [object Object].request (/Users/msdark/Development/Trabajo/ 
        Stream/service/gen-nodejs/lib/node-couchdb/lib/couchdb.js:342:24) 
    at [object Object].getDoc (/Users/msdark/Development/Trabajo/ 
        Stream/service/gen-nodejs/lib/node-couchdb/lib/couchdb.js:379:15) 
    at /Users/msdark/Development/Trabajo/Stream/service/gen-nodejs/server.js:56:24 
    at IncomingMessage.<anonymous> (/Users/msdark/Development/Trabajo/ 
            Stream/service/gen-nodejs/lib/node-couchdb/lib/couchdb.js:194:26) 
    at IncomingMessage.emit (events.js:81:20) 
    at HTTPParser.onMessageComplete (http.js:133:23) 
    at Client.onData [as ondata] (http.js:1484:27) 

The application still working but, with some lag and some error
message in the C++ side (the thrift client)..
How can i bypass this problem??
Thanks in advance.
[1] Thrift: http://thrift.apache.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants