mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
e0a9ad1af2
Prevent the events listeners of the sockets obtained with the HTTP upgrade mechanism from retaining unneeded memory. Ref: https://github.com/nodejs/node/issues/11868 PR-URL: https://github.com/nodejs/node/pull/11926 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
11 lines
172 B
JavaScript
11 lines
172 B
JavaScript
'use strict';
|
|
|
|
function ondrain() {
|
|
if (this._httpMessage) this._httpMessage.emit('drain');
|
|
}
|
|
|
|
module.exports = {
|
|
outHeadersKey: Symbol('outHeadersKey'),
|
|
ondrain,
|
|
};
|