Closed achingbrain closed 4 months ago
Sure, I have also seen this. But it was during another problem, so I thought it was a side effect.
Sorry I did not think this through, I reverted the PR. This may cause promises to be not resolved. The protection must to be only in the check, if writes are blocked.
Btw, I think this is a bug, which also should be filed with node.js.
Sometimes calling
getSendQueueCount
can cause an internal crash in thedgram
module.I think it may be because packets are being sent during server shutdown - guarding on the
this.closed
property similar to thesendPacket
method avoids the crash.