Browse Source

Ensure BAD domain example actually uses domain

v0.10.3-release
Michael Hart 12 years ago
committed by isaacs
parent
commit
440dcae987
  1. 6
      doc/api/domain.markdown

6
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) {
d.run(function() {
require('http').createServer(function(req, res) {
handleRequest(req, res);
}).listen(PORT);
}).listen(PORT);
});
```
By using the context of a domain, and the resilience of separating our

Loading…
Cancel
Save