Python · Sockets & Networking
In a TCP receive loop, how do you detect that the peer closed the connection? ```python while data := conn.recv(1024): ... ```
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
