���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /home/real/node-v13.0.1/test/parallel/ |
// In Node 4.2.1 on operating systems other than Linux, this test triggers an // assertion in cluster.js. The assertion protects against memory leaks. // https://github.com/nodejs/node/pull/3510 'use strict'; const common = require('../common'); const assert = require('assert'); const net = require('net'); const cluster = require('cluster'); cluster.schedulingPolicy = cluster.SCHED_NONE; if (cluster.isMaster) { let conn, worker2; const worker1 = cluster.fork(); worker1.on('listening', common.mustCall(function(address) { worker2 = cluster.fork(); worker2.on('online', function() { conn = net.connect(address.port, common.mustCall(function() { worker1.disconnect(); worker2.disconnect(); })); conn.on('error', function(e) { // ECONNRESET is OK if (e.code !== 'ECONNRESET') throw e; }); }); })); cluster.on('exit', function(worker, exitCode, signalCode) { assert(worker === worker1 || worker === worker2); assert.strictEqual(exitCode, 0); assert.strictEqual(signalCode, null); if (Object.keys(cluster.workers).length === 0) conn.destroy(); }); return; } const server = net.createServer(function(c) { c.on('error', function(e) { // ECONNRESET is OK, so we don't exit with code !== 0 if (e.code !== 'ECONNRESET') throw e; }); c.end('bye'); }); server.listen(0);