Skip to content

a potential IndexError #1

Description

@wudiiv11

In line 124, since you write

while True:
    ...
    if front == rcvd_ack.ack_num:
        break;

The if statement means the receiver haven't receive the packet with first byte number of ack_num.
However, if the ack_num is not in the window since it always ack the next byte, maybe it will raise an Index Error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions