#NEWLINE# def _decPackageWindow( self ) : #NEWLINE# #INDENT# "Decrement this circuit's package window.\n\n        If the package window is above zero, listen for more incoming local\n        data. Otherwise, enter a state CState.BUFFERING. In this buffering\n        state, this circuit will not accept any new streams and will not\n        write any data to its connection. It will leave it's buffering state\n        and become open again when it receives enough RelaySendMeCell's to\n        move its package window above zero again.\n        " #NEWLINE# self . _package_window -= 1 #NEWLINE# if ( self . _package_window > 0 ) : #NEWLINE# #INDENT# self . _pollWriteQueue ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _state = CState . BUFFERING #NEWLINE# self . _write_task = None #NEWLINE# msg = "Circuit {}'s packaging window dropped to 0. The circuit entered a buffering state." . format ( self . circuit_id ) #NEWLINE# logging . debug ( msg )