Convert HTTPSession to use HTTP2PriorityQueue
Summary: This replaces the SPDY priority queue with the HTTP2PriorityQueue. SPDY is mapped into the HTTP/2 Queue by means of 8 virtual nodes in the tree, one for each priority level. The egress algorithm has changed, and getNextToSend() can add egress from more than one transaction per call. It will add some egress from every enqueued transaction at a particular level of the tree. This could now exceed 64k per call as we have a minimum egress of limit/2 (2kb), up to what the session window allows. The alternative is to make an HTTP2PriorityQueue iterator that keeps some state about which nodes at the egress level have not yet called onWriteReady.
Reviewed By: xiaosophiawang
Differential Revision:
D2197984
fb-gh-sync-id:
cfa153aa055b0eb7a801ce8891fb717b835d30c6