diff options
author | Victor Orlikowski <vjo@duke.edu> | 2016-08-02 11:02:31 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-08-02 11:02:31 +0900 |
commit | 12d6584bee4aca4a5bf2e93e3b8eca43cae76d0d (patch) | |
tree | 79150f2011579ee38e88bf50c96ac59ca6aedf4d /setup.cfg | |
parent | 9ee265ab4535d6995d99cbee6bcfc344be411e77 (diff) |
Ensure that send() and send_msg() in controller return status to calling applications
When a Datapath disconnects, an application may not know about it
until it attempts to send a message to that Datapath.
Ryu's core will detect the failure to send, and will close the
Datapath object - but has no way of letting the application know that
it did so.
With this patch, send_msg() returns True or False, depending on
whether the message that the application was trying to send was able
to be enqueued to send via a given Datapath object.
If the Datapath.send_msg() returns False, the calling application can
thereby determine that the Datapath is no longer valid, and should
clean up any references it has to it.
Existing applications may choose to ignore the return value, and
nothing breaks.
I have patched one utility method that uses send_msg(), since it was
not marked as deprecated. All utility methods marked as deprecated, I
have not altered.
Signed-off-by: Victor J. Orlikowski <vjo@duke.edu>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'setup.cfg')
0 files changed, 0 insertions, 0 deletions