Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
iNetty /
node_modules /
ws /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
buffer-util.js
2.84
KB
-rw-r--r--
2022-04-21 14:30
constants.js
360
B
-rw-r--r--
2022-04-21 14:30
event-target.js
6.44
KB
-rw-r--r--
2022-04-21 14:30
extension.js
6.04
KB
-rw-r--r--
2022-04-21 14:30
limiter.js
1.01
KB
-rw-r--r--
2022-04-21 14:30
permessage-deflate.js
13.69
KB
-rw-r--r--
2022-04-21 14:30
receiver.js
14.17
KB
-rw-r--r--
2022-04-21 14:30
sender.js
12.37
KB
-rw-r--r--
2022-04-21 14:30
stream.js
3.99
KB
-rw-r--r--
2022-04-21 14:30
subprotocol.js
1.46
KB
-rw-r--r--
2022-04-21 14:30
validation.js
3.07
KB
-rw-r--r--
2022-04-21 14:30
websocket-server.js
13.56
KB
-rw-r--r--
2022-04-21 14:30
websocket.js
31.72
KB
-rw-r--r--
2022-04-21 14:30
Save
Rename
'use strict'; const kDone = Symbol('kDone'); const kRun = Symbol('kRun'); /** * A very simple job queue with adjustable concurrency. Adapted from * https://github.com/STRML/async-limiter */ class Limiter { /** * Creates a new `Limiter`. * * @param {Number} [concurrency=Infinity] The maximum number of jobs allowed * to run concurrently */ constructor(concurrency) { this[kDone] = () => { this.pending--; this[kRun](); }; this.concurrency = concurrency || Infinity; this.jobs = []; this.pending = 0; } /** * Adds a job to the queue. * * @param {Function} job The job to run * @public */ add(job) { this.jobs.push(job); this[kRun](); } /** * Removes a job from the queue and runs it if possible. * * @private */ [kRun]() { if (this.pending === this.concurrency) return; if (this.jobs.length) { const job = this.jobs.shift(); this.pending++; job(this[kDone]); } } } module.exports = Limiter;