From 2c607a3b8e0584fa20ce38095c9158f623501cee Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Wed, 30 Nov 2011 20:28:22 +0100 Subject: documentation update * added a number of internal links (L{...}) * some fixes * some additions --- wsgitools/scgi/asynchronous.py | 4 ++-- wsgitools/scgi/forkpool.py | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'wsgitools/scgi') 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 -- cgit v1.2.3