Hi,
I have (had?) a problem with the multicast receiving.
My code works flawlessly in the VM. But when I send it to the submission, I get 0 points.
After close inspection of my logs, it appears my code... does nothing. no print, no output. For reference, my code looks like that
import things print("Code started") #some python magic about sockets while True: data = sock.recv(1024) print(data)Not even the first print is displayed. And when I remove the while loop entirely, everything else is printed.
BUT, fun things: if I modify the while loop like that:
try: i = 5 while i > 0: data = sock.recv(1024) print(data) i -= 1 except KeyboardInterrupt: pass
Then suddenly I get full grade, everything prints. What's the problem? There was no specification about only doing a fixed number of receives, or catching the KeybordInterrupt. Am I missing something?