Logo Search packages:      
Sourcecode: tcpwatch-httpproxy version File versions  Download package

def tcpwatch::HTTPProxyToServerConnection::close (   self  ) 

Close the connection to the server.

If there is unsent response data, an error is generated.

Definition at line 1099 of file tcpwatch.py.

01099                    :
        """Close the connection to the server.

        If there is unsent response data, an error is generated.
        """
        self.flush()
        if not self.finished:
            t = IOError
            v = 'Closed without finishing response to client'
            for d in self._dests:
                if hasattr(d, 'error'):
                    d.error(t, v)
        ForwardingEndpoint.close(self)



class HTTPProxyToClientConnection (ForwardingEndpoint):


Generated by  Doxygen 1.6.0   Back to index