allow set speed limit in runtime

This commit is contained in:
破娃酱 2017-06-04 18:34:12 +08:00
parent f22ef99d85
commit 82f8fef28a
5 changed files with 40 additions and 17 deletions

View file

@ -28,6 +28,7 @@ import time
from shadowsocks import shell, eventloop, tcprelay, udprelay, asyncdns, common
import threading
import sys
import traceback
from socket import *
from configloader import load_config, get_config
@ -80,12 +81,10 @@ class ServerPool(object):
loop.run()
except (KeyboardInterrupt, IOError, OSError) as e:
logging.error(e)
import traceback
traceback.print_exc()
os.exit(0)
except Exception as e:
logging.error(e)
import traceback
traceback.print_exc()
def server_is_run(self, port):