The reason I put it here is because it's right before calling self._socket.recv(), just as it is is right before calling self._socket.sendall() in send().