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.

21 lines
395 B

'use strict';
const common = require('../common');
var http = require('http');
var server = http.createServer(function(req, res) {
res.end();
});
server.listen(0, common.mustCall(function() {
var req = http.request({
port: this.address().port
}, common.fail);
req.on('abort', common.mustCall(function() {
server.close();
}));
req.end();
req.abort();
req.abort();
}));