summaryrefslogtreecommitdiff
path: root/wsgitools/scgi
diff options
context:
space:
mode:
Diffstat (limited to 'wsgitools/scgi')
-rw-r--r--wsgitools/scgi/asynchronous.py4
-rw-r--r--wsgitools/scgi/forkpool.py8
2 files changed, 8 insertions, 4 deletions
diff --git a/wsgitools/scgi/asynchronous.py b/wsgitools/scgi/asynchronous.py
index e1dbcc6..6b69c73 100644
--- a/wsgitools/scgi/asynchronous.py
+++ b/wsgitools/scgi/asynchronous.py
@@ -218,8 +218,8 @@ class SCGIServer(asyncore.dispatcher):
@type reusesocket: None or socket.socket
@param reusesocket: If a socket is passed, do not create a socket.
Instead use given socket as listen socket. The passed socket
- must be set up for accepting tcp connections (i.e. AF_INET,
- SOCK_STREAM with bind and listen called).
+ must be set up for accepting tcp connections (i.e. C{AF_INET},
+ C{SOCK_STREAM} with bind and listen called).
"""
if reusesocket is None:
asyncore.dispatcher.__init__(self)
diff --git a/wsgitools/scgi/forkpool.py b/wsgitools/scgi/forkpool.py
index 8ccd579..39c9dfd 100644
--- a/wsgitools/scgi/forkpool.py
+++ b/wsgitools/scgi/forkpool.py
@@ -163,6 +163,10 @@ class SCGIServer:
"""state: 0 means idle and 1 means working.
These values are also sent as strings '0' and '1' over the socket."""
def __init__(self, pid, sock, state):
+ """
+ @type pid: int
+ @type state: int
+ """
self.pid = pid
self.sock = sock
self.state = state
@@ -192,8 +196,8 @@ class SCGIServer:
@type reusesocket: None or socket.socket
@param reusesocket: If a socket is passed, do not create a socket.
Instead use given socket as listen socket. The passed socket
- must be set up for accepting tcp connections (i.e. AF_INET,
- SOCK_STREAM with bind and listen called).
+ must be set up for accepting tcp connections (i.e. C{AF_INET},
+ C{SOCK_STREAM} with bind and listen called).
"""
assert hasattr(error, "write")
self.wsgiapp = wsgiapp