parameters: (self, data)
docstring: Called when some SSL data is received.
  
          The argument is a bytes object.
docstring_summary: Called when some SSL data is received.
docstring_tokens: Called when some SSL data is received .
function: def data_received(self, data):
          """Called when some SSL data is received.
  
          The argument is a bytes object.
          """
          if self._sslpipe is None:
              # transport closing, sslpipe is destroyed
              return
  
          try:
              ssldata, appdata = self._sslpipe.feed_ssldata(data)
          except (SystemExit, KeyboardInterrupt):
              raise
          except BaseException as e:
              self._fatal_error(e, 'SSL error in data received')
              return
  
          for chunk in ssldata:
              self._transport.write(chunk)
  
          for chunk in appdata:
              if chunk:
                  try:
                      if self._app_protocol_is_buffer:
                          protocols._feed_data_to_buffered_proto(
                              self._app_protocol, chunk)
                      else:
                          self._app_protocol.data_received(chunk)
                  except (SystemExit, KeyboardInterrupt):
                      raise
                  except BaseException as ex:
                      self._fatal_error(
                          ex, 'application protocol failed to receive SSL data')
                      return
              else:
                  self._start_shutdown()
                  break
function_tokens: def data_received ( self , data ) : if self . _sslpipe is None : # transport closing, sslpipe is destroyed return try : ssldata , appdata = self . _sslpipe . feed_ssldata ( data ) except ( SystemExit , KeyboardInterrupt ) : raise except BaseException as e : self . _fatal_error ( e , 'SSL error in data received' ) return for chunk in ssldata : self . _transport . write ( chunk ) for chunk in appdata : if chunk : try : if self . _app_protocol_is_buffer : protocols . _feed_data_to_buffered_proto ( self . _app_protocol , chunk ) else : self . _app_protocol . data_received ( chunk ) except ( SystemExit , KeyboardInterrupt ) : raise except BaseException as ex : self . _fatal_error ( ex , 'application protocol failed to receive SSL data' ) return else : self . _start_shutdown ( ) break