log RLIMIT_NOFILE

let http_simple the same as http_post when server_decode
This commit is contained in:
破娃酱 2016-08-24 17:11:01 +08:00
parent 3d4356e8b4
commit 1221a1f3f6
3 changed files with 9 additions and 34 deletions

View file

@ -189,6 +189,8 @@ class TransferBase(object):
socket.setdefaulttimeout(timeout)
last_rows = []
db_instance = obj()
import resource
logging.info('current process RLIMIT_NOFILE resource: soft %d hard %d' % resource.getrlimit(resource.RLIMIT_NOFILE))
try:
while True:
load_config()