def close(self):
     self.closed=1
     while self.queue:
         self.queue.pop()
     if self.current_request is not None:
         self.current_request.channel=None # break circ refs
         self.current_request=None
     while self.producer_fifo:
         p=self.producer_fifo.first()
         if p is not None and type(p) != types.StringType:
             p.more() # free up resources held by producer
         self.producer_fifo.pop()
     dispatcher.close(self)
Exemple #2
0
 def close(self):
     self.closed = 1
     while self.queue:
         self.queue.pop()
     if self.current_request is not None:
         self.current_request.collector = None  # break circ refs
         self.current_request.channel = None  # break circ refs
         self.current_request = None
     while self.producer_fifo:
         p = self.producer_fifo_first()
         if p is not None and not isinstance(p, basestring):
             p.more()  # free up resources held by producer
         self.producer_fifo_pop()
     dispatcher.close(self)
 def close(self):
     self.closed=1
     while self.queue:
         self.queue.pop()
     if self.current_request is not None:
         self.current_request.collector = None # break circ refs
         self.current_request.channel = None # break circ refs
         self.current_request=None
     while self.producer_fifo:
         p=self.producer_fifo_first()
         if p is not None and not isinstance(p, basestring):
             p.more() # free up resources held by producer
         self.producer_fifo_pop()
     dispatcher.close(self)
Exemple #4
0
 def close(self):
     dispatcher.close(self)
Exemple #5
0
 def close(self):
     if self._connect_future is not None:
         self._connect_future.set_error(message="Connection closed")
         self._connect_future = None
     dispatcher.close(self)
Exemple #6
0
 def close(self):
     self.server.removeClient(self)
     self.stream.close()
     self.buffer = ''
     dispatcher.close(self)