-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Priority Queue has an infinite Loop bug #278
Comments
@Sean-Der, please have a look at the issue above. |
Hey @hafus I would really appreciate your help on this. I want to drop the Priority Queue and instead have the JitterBuffer and NACK Responder powered by the same data structure. Would you be interested in helping me with this? |
Can be used by NACK and JitterBuffer now Relates to #278
Can be used by NACK and JitterBuffer now Relates to #278
Hello @Sean-Der Of course, that's my pleasure. I will start working on it. If you have any suggestions or known issues about the current implementation, please share them with me. |
Your environment.
What did you do?
The code snippet below is a test case that catches the reported bug.
What did you expect?
Priority queue should have a length of one after inserting a duplicate packet of the first packet in the queue or at least not enter into an infinite loop.
What happened?
The Push func runs for infinite time because the duplicated packet has head and prev pointers pointing into the head packet, resulting in a loop.
interceptor/pkg/jitterbuffer/priority_queue.go
Lines 80 to 100 in 0eab188
suggestions
I suggest dropping any duplicated packet because it already exists in the queue.
The text was updated successfully, but these errors were encountered: