go-ovn icon indicating copy to clipboard operation
go-ovn copied to clipboard

client.Close() should handle cache release and remove the disconnect callback.

Open hzhou8 opened this issue 4 years ago • 0 comments

Maybe this API is not needed in most situation. However, current implementation has problems:

  1. 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.

  2. 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().

hzhou8 avatar Jun 18 '20 00:06 hzhou8