def _handle_request(self, w, revents): sock, addr = self.socket.accept() greenlet(self.RequestHandlerClass).switch(fakesocket(_sock=sock), addr, self)
def _handle_request(self, w, revents): sock, addr = self.socket.accept() greenlet(self.RequestHandlerClass).switch( fakesocket(_sock=sock), addr , self)
def get_request(self): '''Get the request and client address from the socket.''' sock, addr = self.socket.accept() return fakesocket(_sock=sock), addr