diff options
Diffstat (limited to 'wsgitools/scgi/asynchronous.py')
-rw-r--r-- | wsgitools/scgi/asynchronous.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/wsgitools/scgi/asynchronous.py b/wsgitools/scgi/asynchronous.py index 338fac9..81ed567 100644 --- a/wsgitools/scgi/asynchronous.py +++ b/wsgitools/scgi/asynchronous.py @@ -9,7 +9,7 @@ except ImportError: import StringIO class SCGIConnection(asyncore.dispatcher): - """SCGI connection class used by WSGISCGIServer.""" + """SCGI connection class used by L{SCGIServer}.""" # connection states NEW = 0*4 | 1 # connection established, waiting for request HEADER = 1*4 | 1 # the request length was received, waiting for the rest @@ -59,15 +59,15 @@ class SCGIConnection(asyncore.dispatcher): self.outbuff += data def readable(self): - """asyncore interface""" + """C{asyncore} interface""" return self.state & 1 == 1 def writable(self): - """asyncore interface""" + """C{asyncore} interface""" return self.state & 2 == 2 def handle_read(self): - """asyncore interface""" + """C{asyncore} interface""" data = self.recv(self.blocksize) self.inbuff += data if self.state == SCGIConnection.NEW: @@ -148,7 +148,7 @@ class SCGIConnection(asyncore.dispatcher): return self._wsgi_write def handle_write(self): - """asyncore interface""" + """C{asyncore} interface""" assert self.state >= SCGIConnection.REQ if len(self.outbuff) < self.blocksize: self._try_send_headers() @@ -173,7 +173,7 @@ class SCGIConnection(asyncore.dispatcher): self.outbuff = self.outbuff[sentbytes:] def handle_close(self): - """asyncore interface""" + """C{asyncore} interface""" self.close() __all__.append("SCGIServer") @@ -188,9 +188,9 @@ class SCGIServer(asyncore.dispatcher): @param port: is an int representing the TCP port number to be used. @type interface: str @param interface: is a string specifying the network interface to bind - which defaults to "localhost" making the server inaccessible + which defaults to C{"localhost"} making the server inaccessible over network. - @param error: is a file-like object being passed as wsgi.error in the + @param error: is a file-like object being passed as C{wsgi.error} in the environ parameter defaulting to stderr. @type maxrequestsize: int @param maxrequestsize: limit the size of request blocks in scgi @@ -229,6 +229,6 @@ class SCGIServer(asyncore.dispatcher): def run(self): """Runs the server. It will not return and you can invoke - asyncore.loop() instead achieving the same effect.""" + C{asyncore.loop()} instead achieving the same effect.""" asyncore.loop() |