Skip to content
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

a potential IndexError #1

Open
wudiiv11 opened this issue Oct 29, 2019 · 0 comments
Open

a potential IndexError #1

wudiiv11 opened this issue Oct 29, 2019 · 0 comments

Comments

@wudiiv11
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant