Bläddra i källkod

Shut down ycmd after 30 minutes of inactivity

micbou 7 år sedan
förälder
incheckning
4e08cde268
3 ändrade filer med 3 tillägg och 3 borttagningar
  1. 1 1
      README.md
  2. 1 1
      doc/youcompleteme.txt
  3. 1 1
      python/ycm/youcompleteme.py

+ 1 - 1
README.md

@@ -3025,7 +3025,7 @@ plugins prevent this event from triggering by exiting Vim through an autocommand
 without using the `nested` keyword (see `:h autocmd-nested`). One of these
 plugins is [vim-nerdtree-tabs][]. You should identify which plugin is
 responsible for the issue and report it to the plugin author. Note that when
-this happens, [ycmd][] will automatically shut itself down after 3 hours.
+this happens, [ycmd][] will automatically shut itself down after 30 minutes.
 
 Contributor Code of Conduct
 ---------------------------

+ 1 - 1
doc/youcompleteme.txt

@@ -3312,7 +3312,7 @@ plugins prevent this event from triggering by exiting Vim through an
 autocommand without using the 'nested' keyword (see ':h autocmd-nested'). One
 of these plugins is vim-nerdtree-tabs [68]. You should identify which plugin is
 responsible for the issue and report it to the plugin author. Note that when
-this happens, ycmd [43] will automatically shut itself down after 3 hours.
+this happens, ycmd [43] will automatically shut itself down after 30 minutes.
 
 ===============================================================================
                                     *youcompleteme-contributor-code-of-conduct*

+ 1 - 1
python/ycm/youcompleteme.py

@@ -99,7 +99,7 @@ CORE_PYTHON3_MESSAGE = (
 CORE_OUTDATED_MESSAGE = (
   'YCM core library too old; PLEASE RECOMPILE by running the install.py '
   'script. See the documentation for more details.' )
-SERVER_IDLE_SUICIDE_SECONDS = 10800  # 3 hours
+SERVER_IDLE_SUICIDE_SECONDS = 1800  # 30 minutes
 DIAGNOSTIC_UI_FILETYPES = set( [ 'cpp', 'cs', 'c', 'objc', 'objcpp',
                                  'typescript' ] )
 CLIENT_LOGFILE_FORMAT = 'ycm_'