code: def strict_request_reply(msg, send: Callable, recv: Callable):
      
      try:
          send(msg)
      except Exception:
          raise
      try:
          return recv()
      except Exception:
          with suppress(zmq.error.Again):
              recv()
          raise
docs: Ensures a strict req-reply loop,
      so that clients dont't receive out-of-order messages,
      if an exception occurs between request-reply.