code: def _recv_robust(self, sock, size):
          
          while True:
              try:
                  return sock.recv(size)
              except socket.error as e:
                  if e.errno != errno.EINTR:
                      raise
docs: Receive size from sock, and retry if the recv() call was interrupted.
          (this is only required for python2 compatability)