X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=python3%2Fashd%2Fserve.py;h=ce17b9d2b8b1e93b14e583e2d31d57dfe3f55507;hb=9c38d6e8568186c47103a9980235595b1962c081;hp=f11651861aaa09de3b8e6d25c4fef2d8aa9a4f51;hpb=b0a7be65031e2b3a91bc26c69eea6e75900cb961;p=ashd.git diff --git a/python3/ashd/serve.py b/python3/ashd/serve.py index f116518..ce17b9d 100644 --- a/python3/ashd/serve.py +++ b/python3/ashd/serve.py @@ -23,7 +23,7 @@ class reqthread(threading.Thread): super().__init__(name=name, **kw) class wsgirequest(object): - def __init__(self, handler): + def __init__(self, *, handler): self.status = None self.headers = [] self.respsent = False @@ -144,7 +144,7 @@ class freethread(handler): th = reqthread(target=self.run, args=[req]) th.start() while th.is_alive() and th not in self.current: - self.tcond.wait() + self.tcond.wait(1) def run(self, req): try: @@ -214,7 +214,7 @@ class resplex(handler): th = reqthread(target=self.handle1, args=[req]) th.start() while th.is_alive() and th not in self.current: - self.tcond.wait() + self.tcond.wait(1) def handle1(self, req): try: