On Thu, 28 Jul 2016 22:45:15 +0000 Victor Orlikowski <[email protected]> wrote:
> 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 <[email protected]> > --- Applied, thanks. ------------------------------------------------------------------------------ _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
