cursory slowloris / buggy-webdav-client detector

This commit is contained in:
ed
2022-11-01 22:18:20 +00:00
parent 3312c6f5bd
commit 89d1f52235
8 changed files with 118 additions and 45 deletions
+8 -8
View File
@@ -69,6 +69,14 @@ VT100 = platform.system() != "Windows"
req_ses = requests.Session()
class Daemon(threading.Thread):
def __init__(self, target, name=None, a=None):
# type: (Any, Any, Any) -> None
threading.Thread.__init__(self, target=target, args=a or (), name=name)
self.daemon = True
self.start()
class File(object):
"""an up2k upload task; represents a single file"""
@@ -543,14 +551,6 @@ def upload(req_ses, file, cid, pw):
f.f.close()
class Daemon(threading.Thread):
def __init__(self, target, name=None, a=None):
# type: (Any, Any, Any) -> None
threading.Thread.__init__(self, target=target, args=a or (), name=name)
self.daemon = True
self.start()
class Ctl(object):
"""
this will be the coordinator which runs everything in parallel