mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-27 11:34:40 -05:00
Remove socket protocol logger
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
|
||||
const cluster = require('cluster');
|
||||
const fs = require('fs');
|
||||
const FS = require('./lib/fs');
|
||||
|
||||
if (cluster.isMaster) {
|
||||
cluster.setupMaster({
|
||||
@@ -423,14 +422,10 @@ if (cluster.isMaster) {
|
||||
* @type {Map<string, Map<string, string>>}
|
||||
*/
|
||||
const subchannels = new Map();
|
||||
/** @type {WriteStream} */
|
||||
const logger = FS(`logs/sockets-${process.pid}`).createAppendStream();
|
||||
|
||||
// Deal with phantom connections.
|
||||
const sweepSocketInterval = setInterval(() => {
|
||||
sockets.forEach(socket => {
|
||||
logger.write(`Found a ghost connection with a protocol of ${socket.protocol}\n`);
|
||||
|
||||
// @ts-ignore
|
||||
if (socket.protocol === 'xhr-streaming' && socket._session && socket._session.recv) {
|
||||
// @ts-ignore
|
||||
|
||||
Reference in New Issue
Block a user