Cross platform database openness check #64
Labels
bug
Something isn't working
enhancement
New feature or request
help wanted
Extra attention is needed
question
Further information is requested
Currently,
Client::new()
checks if ledger is open to another client withlsof
command. If not starts a clean ledger and if it is just connects. This works fine but not cross platform. Probably not work on windows.#63 was an attempt to this problem. But it had it's problem.
There is another option: Start a server and write it's port to database. Then new clients first tries to connect to that server. If server is not responding, start a new ledger and a server. This approach also has caveats: Simple ping checks takes lots of time. This is not acceptable for multiple tests.
Changing database is another option. Redis provides in-memory database with connection information. Could be a good replacement to SQLite3.
The text was updated successfully, but these errors were encountered: