Skip to content

a potential IndexError #1

@wudiiv11

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

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