Fix crash on windows
This commit is contained in:
parent
0bf1e46ace
commit
f05bea4e10
1 changed files with 7 additions and 2 deletions
|
@ -198,8 +198,13 @@ class TransferBase(object):
|
||||||
db_instance = obj()
|
db_instance = obj()
|
||||||
ServerPool.get_instance()
|
ServerPool.get_instance()
|
||||||
shell.log_shadowsocks_version()
|
shell.log_shadowsocks_version()
|
||||||
import resource
|
|
||||||
logging.info('current process RLIMIT_NOFILE resource: soft %d hard %d' % resource.getrlimit(resource.RLIMIT_NOFILE))
|
try:
|
||||||
|
import resource
|
||||||
|
logging.info('current process RLIMIT_NOFILE resource: soft %d hard %d' % resource.getrlimit(resource.RLIMIT_NOFILE))
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
load_config()
|
load_config()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue