X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=python3%2Fashd-wsgi3;h=fbb8d38edba73f98f33d45a62ed12fda04e4490e;hb=0690bcf6151bb3c0f2b8c7c6d397c247e4b8bdf8;hp=a07ac8d767c39577b855c30ec826b0217bb20fd7;hpb=8db41888f19bbb6b26bb084287716b6832d6ec78;p=ashd.git diff --git a/python3/ashd-wsgi3 b/python3/ashd-wsgi3 index a07ac8d..fbb8d38 100755 --- a/python3/ashd-wsgi3 +++ b/python3/ashd-wsgi3 @@ -1,7 +1,7 @@ #!/usr/bin/python3 -import sys, os, getopt, threading, socket, logging, time, locale, collections -import ashd.proto, ashd.util, ashd.perf, ashd.serve +import sys, os, getopt, socket, logging, time, locale, collections +import ashd.util, ashd.serve try: import pdm.srv except: @@ -13,7 +13,7 @@ def usage(out): hspec = "free", {} modwsgi_compat = False setlog = True -opts, args = getopt.getopt(sys.argv[1:], "+hALp:t:m:") +opts, args = getopt.getopt(sys.argv[1:], "+hALp:t:l:m:") for o, a in opts: if o == "-h": usage(sys.stdout) @@ -24,6 +24,8 @@ for o, a in opts: setlog = False elif o == "-A": modwsgi_compat = True + elif o == "-l": + hspec = "free", {"max": a, "abort": "10"} elif o == "-t": hspec = ashd.serve.parsehspec(a) elif o == "-m":