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

Serve on process.nextTick #19

Closed
wants to merge 2 commits into from

Conversation

ayoung
Copy link

@ayoung ayoung commented Jul 6, 2012

This is so that you can attach listeners after calling server.serve();

server.serve();
server.on('listening', function() {
  // oh yeah!
});

@tjfontaine
Copy link
Owner

What you've actually found is a node bug you can follow the progress at nodejs/node-v0.x-archive#3655

@ayoung
Copy link
Author

ayoung commented Jul 6, 2012

Awesome. Thanks Timothy.

@tjfontaine
Copy link
Owner

This has been fixed upstream, so will likely make it into the next 0.9 release, I think for now I would recommend attaching the listener before the .serve

@tjfontaine tjfontaine closed this Jul 27, 2012
@ayoung
Copy link
Author

ayoung commented Jul 27, 2012

Thanks for letting me know.

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

Successfully merging this pull request may close these issues.

None yet

2 participants