allow set speed limit in runtime
This commit is contained in:
parent
f22ef99d85
commit
82f8fef28a
5 changed files with 40 additions and 17 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue