#!/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:
elif o == "-A":
modwsgi_compat = True
elif o == "-l":
- hspec = "free", {"max": int(a), "abort": 10}
+ hspec = "free", {"max": a, "abort": "10"}
elif o == "-t":
hspec = ashd.serve.parsehspec(a)
elif o == "-m":
super().__init__(name=name, **kw)
class wsgirequest(object):
- def __init__(self, handler):
+ def __init__(self, *, handler):
self.status = None
self.headers = []
self.respsent = False
import sys, os, getopt, logging, collections
import socket
-import ashd.scgi, ashd.perf, ashd.serve
+import ashd.scgi, ashd.serve
try:
import pdm.srv
except:
self.bsk.close()
if hspec[0] not in ashd.serve.names:
- sys.stderr.write("ashd-wsgi3: no such request handler: %s\n" % hspec[0])
+ sys.stderr.write("scgi-wsgi3: no such request handler: %s\n" % hspec[0])
sys.exit(1)
hclass = ashd.serve.names[hspec[0]]
try:
hargs = hclass.parseargs(**hspec[1])
except ValueError as exc:
- sys.stderr.write("ashd-wsgi3: %s\n" % exc)
+ sys.stderr.write("scgi-wsgi3: %s\n" % exc)
sys.exit(1)
reqhandler = hclass(**hargs)