Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc: Fixed typo.
[ashd.git]
/
python3
/
ashd
/
serve.py
diff --git
a/python3/ashd/serve.py
b/python3/ashd/serve.py
index
9f9fe7f
..
fe839a2
100644
(file)
--- a/
python3/ashd/serve.py
+++ b/
python3/ashd/serve.py
@@
-1,4
+1,4
@@
-import threading, time, logging
+import
os,
threading, time, logging
log = logging.getLogger("ashd.serve")
seq = 1
log = logging.getLogger("ashd.serve")
seq = 1
@@
-113,3
+113,8
@@
class calllimiter(object):
def call(self, target):
with self:
return target()
def call(self, target):
with self:
return target()
+
+class abortlimiter(calllimiter):
+ def waited(self, time):
+ if time > 10:
+ os.abort()