login, vol.tree, refactor

This commit is contained in:
ed
2019-06-04 22:12:28 +00:00
parent c53413d57c
commit 5d8be84d18
8 changed files with 174 additions and 167 deletions

View File

@@ -42,7 +42,9 @@ class HttpSrv(object):
def thr_client(self, sck, addr, log):
"""thread managing one tcp client"""
try:
cli = HttpCli(sck, addr, self.args, log)
# TODO HttpConn between HttpSrv and HttpCli
# to ensure no state is kept between http requests
cli = HttpCli(sck, addr, self.args, self.auth, log)
with self.mutex:
self.clients[cli] = 0
self.workload += 50