Exemple #1
0
 def connectionLost(self, reason):
     """Fired after a connection is closed or lost. Calls
     loseConnection() on the transport as well.
     
     @param reason: Holds the reason, why the connection was lost
     """
     if self.connectedRemote is not None:
         self.connectedRemote.transport.loseConnection()
     Proxy.connectionLost(self, reason)
 def connectionLost(self, reason):
     if self.connectedRemote is not None:
         self.connectedRemote.transport.loseConnection()
     Proxy.connectionLost(self, reason)
 def connectionLost(self, reason):
     if self.connectedRemote is not None:
         self.connectedRemote.transport.loseConnection()
     Proxy.connectionLost(self, reason)
Exemple #4
0
 def connectionLost(self, reason):
     """代理服务器请求web服务器时,连接断开了
         ,也要通知并断开代理服务器与客户端的连接"""
     if self.connectedRemote is not None:
         self.connectedRemote.transport.loseConnection()
     Proxy.connectionLost(self, reason)
 def connectionLost(self, reason):
     if self._tunnel:
         self._tunnel.transport.loseConnection()
         self._tunnel = None
     Proxy.connectionLost(self, reason)
Exemple #6
0
 def connectionLost(self, reason):
     """代理服务器请求web服务器时,连接断开了
         ,也要通知并断开代理服务器与客户端的连接"""
     if self.connectedRemote is not None:
         self.connectedRemote.transport.loseConnection()
     Proxy.connectionLost(self, reason)