code: def _recv(sock, size):
      
      while True:
          try:
              return sock.recv(size)
          except IOError as e:
              if e.errno != errno.EINTR:
                  raise
docs: sock.recv() with retry on EINTR