I am trying to run a simple program to init_fs() and shutdown_fs() Assise multiple times in the same process.
But I faced some issues with the socket connections being cleaned up properly. My guess is that Assise previously relied on OS cleaning up the socket descriptors during the cleanup of the process, which will not happen if we reinitialize LibFS in the same process.
I have taken a stab at fixing this and it works for my specific use case where I use it in local mode (strata mode).
Here is the pull request: #19
Would be great if you could review this.
Also, here is the sample program that I was trying to make it work for:
I am trying to run a simple program to
init_fs()
andshutdown_fs()
Assise multiple times in the same process.But I faced some issues with the socket connections being cleaned up properly. My guess is that Assise previously relied on OS cleaning up the socket descriptors during the cleanup of the process, which will not happen if we reinitialize LibFS in the same process.
I have taken a stab at fixing this and it works for my specific use case where I use it in local mode (strata mode).
Here is the pull request: #19
Would be great if you could review this.
Also, here is the sample program that I was trying to make it work for:
Thanks!