parameters: (self)
return_statement: return opcode, payload, fin, rsv1, rsv2, rsv3
docstring: Overrides Stream._receive_frame.
  
          In addition to call Stream._receive_frame, this method adds the amount
          of payload to receiving quota and sends FlowControl to the client.
          We need to do it here because Stream.receive_message() handles
          control frames internally.
docstring_summary: Overrides Stream._receive_frame.
docstring_tokens: Overrides Stream . _receive_frame .
function: def _receive_frame(self):
          """Overrides Stream._receive_frame.
  
          In addition to call Stream._receive_frame, this method adds the amount
          of payload to receiving quota and sends FlowControl to the client.
          We need to do it here because Stream.receive_message() handles
          control frames internally.
          """
  
          opcode, payload, fin, rsv1, rsv2, rsv3 = Stream._receive_frame(self)
          amount = len(payload)
          # Replenish extra one octet when receiving the first fragmented frame.
          if opcode != common.OPCODE_CONTINUATION:
              amount += 1
          self._receive_quota += amount
          frame_data = _create_flow_control(self._request.channel_id,
                                            amount)
          self._logger.debug('Sending flow control for %d, replenished=%d' %
                             (self._request.channel_id, amount))
          self._request.connection.write_control_data(frame_data)
          return opcode, payload, fin, rsv1, rsv2, rsv3
function_tokens: def _receive_frame ( self ) : opcode , payload , fin , rsv1 , rsv2 , rsv3 = Stream . _receive_frame ( self ) amount = len ( payload ) # Replenish extra one octet when receiving the first fragmented frame. if opcode != common . OPCODE_CONTINUATION : amount += 1 self . _receive_quota += amount frame_data = _create_flow_control ( self . _request . channel_id , amount ) self . _logger . debug ( 'Sending flow control for %d, replenished=%d' % ( self . _request . channel_id , amount ) ) self . _request . connection . write_control_data ( frame_data ) return opcode , payload , fin , rsv1 , rsv2 , rsv3