def __init__(self,sock):
        """Initiate a socket (non-blocking) and a buffer"""
        self.sock = sock
        self.buffer = cStringIO.StringIO()
        self.closed = 1   # compatibility with SocketServer
Initiate a socket (non-blocking) and a buffer
recipes/Python/259148_Simple_HTTP_server_based/recipe-259148.py