Skip to content

Commit

Permalink
Shut down ycmd after 30 minutes of inactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
micbou committed May 13, 2017
1 parent 9fd6c8e commit aa73bab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------------------------
Expand Down
2 changes: 1 addition & 1 deletion doc/youcompleteme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
2 changes: 1 addition & 1 deletion python/ycm/youcompleteme.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def PatchNoProxy():
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_'
Expand Down

0 comments on commit aa73bab

Please sign in to comment.