go-ovn
go-ovn copied to clipboard
client.Close() should handle cache release and remove the disconnect callback.
Maybe this API is not needed in most situation. However, current implementation has problems:
-
It doesn't cleanup resources and doesn't preventing the other APIs to continue reading the data. The expected behavior should be cleanup all the cache and all the later API calls for read/write data should fail.
-
Currently we have auto-reconnect supported. This API need to reset the disconnect callback so that it won't automatically reconnect by itself as a result of Close().