Open yayo opened 7 years ago
This is probably still the same issue as #285 and #244
Seems it is not happy when several push streams are being created and the connection drops half way through.
@yayo could you try to convert this to a test?
@diasdavid I've recreated the @yayo example as a gist here: https://gist.github.com/matthewp/d5a26ba620fc921754f3ba4892a9b230
I tried to make it into a test but I was not successful. I think I don't understand the lower-level apis well enough yet. Is there a similar test that I could use as an example?
Either way, what's the best way to debug this? Currently a bit of a blocker for me.
An update on what is going on here. The issue is in spdy-transport.
maxCount
option, and when that goes over it removes the first node in the tree here.Since the node was removed in (1) it fails in (2). I'm not sure what the proper solution is here @diasdavid @indutny. Should _handlePriority
check if the node is still in the tree before calling remove() or is there some other approach here?
The root problem is that _removeNode removes the node from the map
but not the list
. Fixing that ensures that it is removed from the tree. This also fixes a memory leak.
Is there a good way?
refresh (F5) your browser quickly twice(or more), and it will crash ! may cause by exceed "transport.protocol.base.constants.MAX_PRIORITY_STREAMS"