parameters: (self)
docstring: Override SocketServer.TCPServer.server_activate to enable multiple
          sockets listen.
docstring_summary: Override SocketServer.TCPServer.server_activate to enable multiple
          sockets listen.
docstring_tokens: Override SocketServer . TCPServer . server_activate to enable multiple sockets listen .
function: def server_activate(self):
          """Override SocketServer.TCPServer.server_activate to enable multiple
          sockets listen.
          """
  
          failed_sockets = []
  
          for socketinfo in self._sockets:
              socket_, addrinfo = socketinfo
              self._logger.info('Listen on: %r', addrinfo)
              try:
                  socket_.listen(self.request_queue_size)
              except Exception, e:
                  self._logger.info('Skip by failure: %r', e)
                  socket_.close()
                  failed_sockets.append(socketinfo)
  
          for socketinfo in failed_sockets:
              self._sockets.remove(socketinfo)
  
          if len(self._sockets) == 0:
              self._logger.critical(
                  'No sockets activated. Use info log level to see the reason.')
function_tokens: def server_activate ( self ) : failed_sockets = [ ] for socketinfo in self . _sockets : socket_ , addrinfo = socketinfo self . _logger . info ( 'Listen on: %r' , addrinfo ) try : socket_ . listen ( self . request_queue_size ) except Exception , e : self . _logger . info ( 'Skip by failure: %r' , e ) socket_ . close ( ) failed_sockets . append ( socketinfo ) for socketinfo in failed_sockets : self . _sockets . remove ( socketinfo ) if len ( self . _sockets ) == 0 : self . _logger . critical ( 'No sockets activated. Use info log level to see the reason.' )