Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Ensure BAD domain example actually uses domain #5171

Closed
wants to merge 1 commit into from

2 participants

@mhart

No description provided.

@isaacs
Owner

Hey, can you go to http://nodejs.org/cla.html and click the boxes that make the lawyers happy? Thanks.

@mhart

Yep, done.

@isaacs
Owner

Landed on 440dcae. Thanks!

@isaacs isaacs closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 30, 2013
  1. @mhart
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 3 deletions.
  1. +5 −3 doc/api/domain.markdown
View
8 doc/api/domain.markdown
@@ -48,9 +48,11 @@ d.on('error', function(er) {
// This is no better than process.on('uncaughtException')!
console.log('error, but oh well', er.message);
});
-require('http').createServer(function(req, res) {
- handleRequest(req, res);
-}).listen(PORT);
+d.run(function() {
+ require('http').createServer(function(req, res) {
+ handleRequest(req, res);
+ }).listen(PORT);
+});
```
By using the context of a domain, and the resilience of separating our
Something went wrong with that request. Please try again.