A cherry-pick of MR !3366 Create a new pending queue, then re-submit pending requests in old pending queue,preventing new events being inserted into it. Closes https://github.com/espressif/esp-idf/issues/2191
A cherry-pick of MR !3366 Create a new pending queue, then re-submit pending requests in old pending queue,preventing new events being inserted into it. Closes https://github.com/espressif/esp-idf/issues/2191