Use a class to hold the high priority requests and low priority requests. Each request is appended to the correct list in the order received. If a request needs to be requeued after an error, it is placed at the head of the corresponding list.
97dd7ac8
9ae8873
3e458241
75986cf9bc
83a6ec60
842a1f4b0b
d1a93373
2f11599e
eba1ffb1