What Zfz said is the problem. It is the only thing that explains why 23/24 queue pop, the 24th drops or times out, then you are placed back at 1/24. If you were REALLY being places at the top of the queue, it would immediately reassign 23/24 but it doesn't.