Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python: Always properly close request handlers when exiting.
[ashd.git]
/
python3
/
ashd-wsgi3
diff --git
a/python3/ashd-wsgi3
b/python3/ashd-wsgi3
index
79dda81
..
b250bce
100755
(executable)
--- a/
python3/ashd-wsgi3
+++ b/
python3/ashd-wsgi3
@@
-192,5
+192,7
@@
class request(ashd.serve.wsgirequest):
def handle(req):
reqhandler.handle(request(bkreq=req, handler=reqhandler))
-ashd.util.serveloop(handle)
-reqhandler.close()
+try:
+ ashd.util.serveloop(handle)
+finally:
+ reqhandler.close()