You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
378 B

'use strict';
const common = require('../common');
const http = require('http');
var server = http.createServer(common.mustCall(function(req, res) {
res.end();
})).listen(0, common.mustCall(function() {
var options = {
agent: null,
port: this.address().port
};
http.get(options, common.mustCall(function(res) {
res.resume();
server.close();
}));
}));