[Lab3] Part 3 too many or not enough requests

[Lab3] Part 3 too many or not enough requests

by Károly Artúr Papp -
Number of replies: 2

Hi,

In the part3 of Lab3 I was failing test 5 and 9, because I didn't send enough packages (even though I got the OFFSET), so I added an additional request to the other family (ip6 if the response was from ip4 and vice versa). Then I fail test 7 and 11 because I send too many packets (but I also get the OFFSET).

Does anyone have an idea how to fix this?

Thanks in advance,

Artur

In reply to Károly Artúr Papp

[Lab3] Part 3 too many or not enough requests

by Gaiëtan Renault -
Hello,

I think your issue is due to multiple calls to socket.close(). You should close your socket ONLY at the end of your script (i.e when your received the offset). Closing a UDP socket make you unable to receive/send datagram.

Best,
Gaiëtan.
In reply to Gaiëtan Renault

Re: [Lab3] Part 3 too many or not enough requests

by Károly Artúr Papp -
Hi,

Thanks for your answer! In my case the problem came from doing an additional request every time, not just when the number of previous request was uneven.

Best regards,
Artur