summaryrefslogtreecommitdiff
path: root/wsgitools/scgi
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2011-11-30 20:28:22 +0100
committerHelmut Grohne <helmut@subdivi.de>2011-11-30 20:28:22 +0100
commit2c607a3b8e0584fa20ce38095c9158f623501cee (patch)
tree70ec95635fd1ec208c6961f669ce45fed112c302 /wsgitools/scgi
parent5b5e52f8d09674eb628cdf0770b9b9b101ca862e (diff)
downloadwsgitools-2c607a3b8e0584fa20ce38095c9158f623501cee.tar.gz
documentation update
* added a number of internal links (L{...}) * some fixes * some additions
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