Open titanism opened 2 years ago
Hi @andris9 - I think that your onConnect handler may also need the if (this.closing) return callback(new Error('Server is closing')). And shouldn't those (instances of if (this.closing) in your codebase) have err.responseCode = 421 as well?
onConnect
if (this.closing) return callback(new Error('Server is closing'))
if (this.closing)
err.responseCode = 421
Also you may need setImmediate in the onConnect as well.
setImmediate
Hi @andris9 - I think that your
onConnect
handler may also need theif (this.closing) return callback(new Error('Server is closing'))
. And shouldn't those (instances ofif (this.closing)
in your codebase) haveerr.responseCode = 421
as well?