Code Monkey home page Code Monkey logo

harmony's People

Contributors

tony-o avatar tony-odell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

harmony's Issues

Can't require the module without index.js on the root directory

I required like this:

var harmony = require("node-harmony"); //awww, harmony

I got this error

Error: Cannot find module 'node-harmony'
14:38:11 web.1  |     at Function.Module._resolveFilename (module.js:338:15)
14:38:11 web.1  |     at Function.Module._load (module.js:280:25)
14:38:11 web.1  |     at Module.require (module.js:364:17)
14:38:11 web.1  |     at require (module.js:380:17)
14:38:11 web.1  |     at Object.<anonymous> (/Users/yohei/work/node-js-getting-started/app.js:121:15)
14:38:11 web.1  |     at Module._compile (module.js:456:26)
14:38:11 web.1  |     at Object.Module._extensions..js (module.js:474:10)
14:38:11 web.1  |     at Module.load (module.js:356:32)
14:38:11 web.1  |     at Function.Module._load (module.js:312:12)
14:38:11 web.1  |     at Function.Module.runMain (module.js:497:10)
14:38:11 web.1  | exited with code 8
14:38:11 system | sending SIGTERM to all processes

If I prepare index.js, it works.

add cluster support

You have an excellend module here. Would be great if it supported node cluster where multiple worker processes listen on same port.

Possible EventEmitter memory leak detected

Hi,

I've these error using harmony. Have you an idea to avoid it ?

Regards,

(node) warning: possible EventEmitter memory leak detected. 11 close listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at Socket.addListener (events.js:179:15)
    at Socket.Readable.on (_stream_readable.js:671:33)
    at Socket.once (events.js:204:8)
    at Socket.Readable.pipe (_stream_readable.js:574:8)
    at Object.mater [as f] (/opt/lpn-milter/node/lib/node_modules/node-harmony/lib/server.js:40:10)
    at next (/opt/lpn-milter/node/lib/node_modules/node-harmony/node_modules/skoconc/skoconc.js:18:5)
    at Object.push (/opt/lpn-milter/node/lib/node_modules/node-harmony/node_modules/skoconc/skoconc.js:6:3)
    at Socket.<anonymous> (/opt/lpn-milter/node/lib/node_modules/node-harmony/lib/server.js:45:12)
    at Socket.emit (events.js:129:20)
    at net.js:459:14
(node) warning: possible EventEmitter memory leak detected. 12 error listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at Socket.addListener (events.js:179:15)
    at Socket.Readable.on (_stream_readable.js:671:33)
    at Object.mater [as f] (/opt/lpn-milter/node/lib/node_modules/node-harmony/lib/server.js:51:9)
    at next (/opt/lpn-milter/node/lib/node_modules/node-harmony/node_modules/skoconc/skoconc.js:18:5)
    at Object.push (/opt/lpn-milter/node/lib/node_modules/node-harmony/node_modules/skoconc/skoconc.js:6:3)
    at Socket.<anonymous> (/opt/lpn-milter/node/lib/node_modules/node-harmony/lib/server.js:45:12)
    at Socket.emit (events.js:129:20)
    at net.js:459:14
    at process._tickCallback (node.js:355:11)
(node) warning: possible EventEmitter memory leak detected. 11 finish listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at Socket.addListener (events.js:179:15)
    at Socket.Readable.on (_stream_readable.js:671:33)
    at Socket.once (events.js:204:8)
    at Socket.Readable.pipe (_stream_readable.js:580:8)
    at Object.mater [as f] (/opt/lpn-milter/node/lib/node_modules/node-harmony/lib/server.js:40:10)
    at next (/opt/lpn-milter/node/lib/node_modules/node-harmony/node_modules/skoconc/skoconc.js:18:5)
    at Object.push (/opt/lpn-milter/node/lib/node_modules/node-harmony/node_modules/skoconc/skoconc.js:6:3)
    at Socket.<anonymous> (/opt/lpn-milter/node/lib/node_modules/node-harmony/lib/server.js:45:12)
    at Socket.emit (events.js:129:20)
    at net.js:459:14
(node) warning: possible EventEmitter memory leak detected. 11 unpipe listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at Socket.addListener (events.js:179:15)
    at Socket.Readable.on (_stream_readable.js:671:33)
    at Socket.Readable.pipe (_stream_readable.js:495:8)
    at Object.mater [as f] (/opt/lpn-milter/node/lib/node_modules/node-harmony/lib/server.js:40:10)
    at next (/opt/lpn-milter/node/lib/node_modules/node-harmony/node_modules/skoconc/skoconc.js:18:5)
    at Object.push (/opt/lpn-milter/node/lib/node_modules/node-harmony/node_modules/skoconc/skoconc.js:6:3)
    at Socket.<anonymous> (/opt/lpn-milter/node/lib/node_modules/node-harmony/lib/server.js:45:12)
    at Socket.emit (events.js:129:20)
    at net.js:459:14
    at process._tickCallback (node.js:355:11)
(node) warning: possible EventEmitter memory leak detected. 11 drain listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at Socket.addListener (events.js:179:15)
    at Socket.Readable.on (_stream_readable.js:671:33)
    at Socket.Readable.pipe (_stream_readable.js:513:8)
    at Object.mater [as f] (/opt/lpn-milter/node/lib/node_modules/node-harmony/lib/server.js:40:10)
    at next (/opt/lpn-milter/node/lib/node_modules/node-harmony/node_modules/skoconc/skoconc.js:18:5)
    at Object.push (/opt/lpn-milter/node/lib/node_modules/node-harmony/node_modules/skoconc/skoconc.js:6:3)
    at Socket.<anonymous> (/opt/lpn-milter/node/lib/node_modules/node-harmony/lib/server.js:45:12)
    at Socket.emit (events.js:129:20)
    at net.js:459:14
    at process._tickCallback (node.js:355:11)

can you please provide some examples?

I am trying to create system that have one entry point (load balancer ex.harmony + proxy ex. caronte) split trafic to other node servers...

so my question is where to put client and where server (regarding to your initial example)?
I need one port to listen is web/web-socket servers are alive, and based on that to pass traffic on the free, or less loaded server...

I didn't get it from initial example?
:(

Per connection callback option?

I'd like the ability to run logic per-connection, prior to the connection being forwarded to the client.

Is this currently possible in this module, or would it need to be added?

My use case is pretty simple, I'd like to run this underneath IIS and manually patch in authenticated user information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.