kappa-db / multifeed

Multi-writer hypercore.
135 stars 27 forks source link

[WIP] close() is not closing all fds #22

Closed gmaclennan closed 5 years ago

gmaclennan commented 5 years ago

Tests on Windows surface an error where file descriptors are not being cleaned up.

Using rimraf after close on Windows is throwing an EPERM error. I have tracked this down to file descriptors not being closed. I haven't found a way of testing that file descriptors are open/closed - I tried using https://github.com/ronomon/opened but it didn't detect the open file descriptors.

This first step also closes the fake feed. TODO: