From e4b0010ba45fd711dbbbb21c772fa992cf5dff16 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 25 Apr 2024 10:14:40 -0400 Subject: [PATCH] Added comment on replyasync with nullptr --- src/app/interaction-model/InvokeResponder.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/interaction-model/InvokeResponder.h b/src/app/interaction-model/InvokeResponder.h index ba369213b6f1dc..7ce9a7740943dc 100644 --- a/src/app/interaction-model/InvokeResponder.h +++ b/src/app/interaction-model/InvokeResponder.h @@ -304,6 +304,10 @@ class InvokeReply // NOTE: Each InvokeReply is associated with a separate `CommandDataIB` within batch // commands. When replying asynchronously, each InvokeReply will set the response // data for the given commandpath/ref only. + // + // IF empty pointer is returned, insufficient memory to reply async is available and + // this should be handled (e.g. by returning an error to the handler/replying with + // an errorcode synchronously). virtual std::unique_ptr ReplyAsync(BitFlags flags) = 0; };