I have been trying to track down the same bug for the past 5 hours or so, and nothing has helped. I've implemented debugging tools, reduced the problem case, tried many variations to see what influences the behaviour, improved logging, even did a diff between full-blast "log absolutely everything" output to play spot the differences between the broken and working case...
And I *still* have no idea where it's breaking.
Just one more async queue abstraction bro, just one more, then I'll solve async queue management forever
I wasn't kidding about the misery thing: https://git.cryto.net/joepie91/push-buffer/commit/9abf7b2631abc90d113c0d646074109810029f31
#javascript