acc/vol ideas

This commit is contained in:
ed
2019-05-28 20:49:58 +00:00
parent 75cae0261f
commit 69e83e95ba
6 changed files with 153 additions and 13 deletions

View File

@@ -5,6 +5,7 @@ from __future__ import print_function
import threading
from .httpcli import *
from .authsrv import *
class HttpSrv(object):
@@ -18,11 +19,12 @@ class HttpSrv(object):
self.args = args
self.disconnect_func = None
self.mutex = threading.Lock()
self.clients = {}
self.workload = 0
self.workload_thr_alive = False
self.mutex = threading.Lock()
self.auth = AuthSrv(args, log_func)
def accept(self, sck, addr):
"""takes an incoming tcp connection and creates a thread to handle it"""