Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

run_electrum_server does not verify open files limit is high enough #103

Open
shsmith opened this issue Jul 12, 2015 · 0 comments
Open

run_electrum_server does not verify open files limit is high enough #103

shsmith opened this issue Jul 12, 2015 · 0 comments

Comments

@shsmith
Copy link
Contributor

shsmith commented Jul 12, 2015

Suggest adding logic like this near the top of run_electrum_server:

# prevent database corruption due to default open file limits
import resource
softlimit, hardlimit = resource.getrlimit(resource.RLIMIT_OFILE)
if hardlimit < 64000:
    print "Your open files limit is too low." 
    sys.exit()
shsmith added a commit to shsmith/electrum-server that referenced this issue Jul 18, 2015
Prevent database corruption due to default open file limits.
If limit is too low, print an error message and exit.
ecdsa pushed a commit that referenced this issue Jul 19, 2015
fix issue #103 check open files limit during initialization
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant