mirror of
https://github.com/nodejs/node.git
synced 2024-11-24 20:29:23 +01:00
bd7a8087a5
The connection interval should close when httpsServer.close is called similarly to how it gets cleared when httpServer.close is called. fixes: https://github.com/nodejs/node/issues/48373 PR-URL: https://github.com/nodejs/node/pull/48383 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
14 lines
482 B
JavaScript
14 lines
482 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const { createServer } = require('http');
|
|
const { kConnectionsCheckingInterval } = require('_http_server');
|
|
|
|
const server = createServer(function(req, res) {});
|
|
server.listen(0, common.mustCall(function() {
|
|
assert.strictEqual(server[kConnectionsCheckingInterval]._destroyed, false);
|
|
server.close(common.mustCall(() => {
|
|
assert(server[kConnectionsCheckingInterval]._destroyed);
|
|
}));
|
|
}));
|