Package qm :: Module web :: Class HTTPServer
[hide private]
[frames] | no frames]

Class HTTPServer

source code

SocketServer.BaseServer --+        
                          |        
     SocketServer.TCPServer --+    
                              |    
      BaseHTTPServer.HTTPServer --+
                                  |
                                 HTTPServer
Known Subclasses:

Workaround for problems in 'BaseHTTPServer.HTTPServer'.

The Python 1.5.2 library's implementation of 'BaseHTTPServer.HTTPServer.server_bind' seems to have difficulties when the local host address cannot be resolved by 'gethostbyaddr'. This may happen for a variety of reasons, such as reverse DNS misconfiguration. This subclass fixes that problem.

Instance Methods [hide private]
 
server_bind(self)
Override 'server_bind' to store the server name.
source code

Inherited from SocketServer.TCPServer: __init__, close_request, fileno, get_request, server_activate, server_close, shutdown_request

Inherited from SocketServer.BaseServer: finish_request, handle_error, handle_request, handle_timeout, process_request, serve_forever, shutdown, verify_request

Inherited from SocketServer.BaseServer (private): _handle_request_noblock

Class Variables [hide private]

Inherited from BaseHTTPServer.HTTPServer: allow_reuse_address

Inherited from SocketServer.TCPServer: address_family, request_queue_size, socket_type

Inherited from SocketServer.BaseServer: timeout

Method Details [hide private]

server_bind(self)

source code 

Override 'server_bind' to store the server name.

Overrides: SocketServer.TCPServer.server_bind