#NEWLINE# def _decDeliverWindow( self ) : #NEWLINE# #INDENT# "Decrement this circuit's deliver window.\n\n        Called when we deliver an incoming RelayDataCell's payload to\n        a stream. If the delivery window is below the default threshold, send\n        a RelaySendMeCell.\n        " #NEWLINE# self . _deliver_window -= 1 #NEWLINE# if ( self . _deliver_window <= SENDME_THRESHOLD ) : #NEWLINE# #INDENT# cell = RelaySendMeCell . make ( self . circuit_id ) #NEWLINE# self . _encryptAndSendCell ( cell ) #NEWLINE# self . _deliver_window += WINDOW_SIZE #NEWLINE# msg = "Circuit {}'s delivery window dropped to {}. The circuit sent a circuit-level RelaySendMeCell and incremented its delivery window to {}." . format ( self . circuit_id , ( self . _deliver_window - WINDOW_SIZE ) , self . _deliver_window ) #NEWLINE# logging . debug ( msg )