diff options
author | Greg Farnum <gregory.farnum@dreamhost.com> | 2012-04-17 11:16:27 -0700 |
---|---|---|
committer | Greg Farnum <gregory.farnum@dreamhost.com> | 2012-04-17 11:17:00 -0700 |
commit | 001aa462cb9a532eebd1b502e1475218a7fdf9d3 (patch) | |
tree | 5d6584344020f54f3138d20bccafbc95010b5db6 | |
parent | a422c4797ff6d4e08c7196195109ac5ce5512ce4 (diff) | |
download | ceph-001aa462cb9a532eebd1b502e1475218a7fdf9d3.tar.gz |
msgr: add a little detail to mark_down_on_empty() and mark_disposable()
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
-rw-r--r-- | src/msg/Messenger.h | 7 | ||||
-rw-r--r-- | src/msg/SimpleMessenger.h | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/msg/Messenger.h b/src/msg/Messenger.h index ba04835501b..3c5cc5d3ead 100644 --- a/src/msg/Messenger.h +++ b/src/msg/Messenger.h @@ -438,6 +438,9 @@ public: * all been sent out the Connection will be closed and * generate an ms_handle_reset notification to the * Dispatcher. + * This function means that you will get a best-effort delivery to + * endpoints that you don't necessarily care about any more, but have + * courtesy Messages for, and then the Connection will be cleaned up. * TODO: Probably this shouldn't generate a Dispatcher * notification, since the mark_down was requested. * @@ -448,7 +451,9 @@ public: * Mark a Connection as "disposable", setting it to lossy * (regardless of initial Policy). Unlike mark_down_on_empty() * this does not immediately close the Connection once - * Messages have been delivered. + * Messages have been delivered, so as long as there are no errors you can + * continue to receive responses; but it will not attempt + * to reconnect for message delivery, either. * * TODO: There's some odd stuff going on in our SimpleMessenger * implementation during connect that looks unused; is there diff --git a/src/msg/SimpleMessenger.h b/src/msg/SimpleMessenger.h index 71b18373dba..39d28f9658c 100644 --- a/src/msg/SimpleMessenger.h +++ b/src/msg/SimpleMessenger.h @@ -532,6 +532,9 @@ public: * all been sent out the Connection will be closed and * generate an ms_handle_reset notification to the * Dispatcher. + * This function means that you will get a best-effort delivery to + * endpoints that you don't necessarily care about any more, but have + * courtesy Messages for, and then the Connection will be cleaned up. * TODO: Probably this shouldn't generate a Dispatcher * notification, since the mark_down was requested. I * think maybe we can just call stop() instead of @@ -545,7 +548,9 @@ public: * Mark a Connection as "disposable", setting it to lossy * (regardless of initial Policy). Unlike mark_down_on_empty() * this does not immediately close the Connection once - * Messages have been delivered. + * Messages have been delivered, so as long as there are no errors you can + * continue to receive responses; but it will not attempt + * to reconnect for message delivery, either. * * TODO: There's some odd stuff going on with Pipe::disposable * during connect that looks unused; is there more of a contract |