Permalink
Browse files

run gc after each request (#4)

  • Loading branch information...
grunxen authored and castwide committed Jun 24, 2017
1 parent 6a40a30 commit f218fd1800742e7d6e34501de6ae6978b6441819
Showing with 10 additions and 0 deletions.
  1. +6 −0 .gitignore
  2. +4 −0 lib/solargraph/server.rb
@@ -1 +1,7 @@
Gemfile.lock

.idea
.vscode
.yardoc
doc
coverage
@@ -11,6 +11,10 @@ class Server < Sinatra::Base
@@api_hash = {}
@@semaphore = Mutex.new

after do
GC.start
end

post '/prepare' do
STDERR.puts "Preparing #{params['workspace']}"
Server.prepare_workspace params['workspace']

0 comments on commit f218fd1

Please sign in to comment.