1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-09 16:32:39 +01:00
phorge-phorge/support/aphlict/server/lib
Pierre Moreau a424fec7bb Aphlict - fix getActiveListenerCount return value
Summary: Ref T7126. Dictionaries do not have a `length` property unlike arrays resulting in the `getActiveListenerCount()` function returning undefined results. Using the `length` property on the array of keys will work.

Test Plan: Using `wscat` to generate multiple connections to the server, establish new ones and close others while keeping an eye on the displayed `clients.active` value.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T7126

Differential Revision: https://secure.phabricator.com/D11647
2015-02-03 07:01:49 -08:00
..
AphlictAdminServer.js Enable "strict" mode for NodeJS 2015-01-20 07:43:10 +11:00
AphlictClientServer.js Aphlict - remove listeners when clients close the connection 2015-02-02 14:57:20 -08:00
AphlictListener.js Enable "strict" mode for NodeJS 2015-01-20 07:43:10 +11:00
AphlictListenerList.js Aphlict - fix getActiveListenerCount return value 2015-02-03 07:01:49 -08:00
AphlictLog.js Enable "strict" mode for NodeJS 2015-01-20 07:43:10 +11:00
javelin.js Make the Aphlict server more resilient. 2014-06-11 10:17:12 -07:00