Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python: Fixed scgi-wsgi3 input handling bug.
[ashd.git]
/
python
/
ashd
/
serve.py
diff --git
a/python/ashd/serve.py
b/python/ashd/serve.py
index
4d5d9ca
..
14170d7
100644
(file)
--- a/
python/ashd/serve.py
+++ b/
python/ashd/serve.py
@@
-1,4
+1,4
@@
-import threading, time, logging
+import
os,
threading, time, logging
log = logging.getLogger("ashd.serve")
seq = 1
@@
-125,3
+125,8
@@
class calllimiter(object):
return target()
finally:
self.__exit__()
+
+class abortlimiter(calllimiter):
+ def waited(self, time):
+ if time > 10:
+ os.abort()