Commit 91c0c92e authored by Renato Figueiro Maia's avatar Renato Figueiro Maia
Browse files

Correção para evitar demora no 'shutdown'.

[SOMA-6978][SOMA-6957]
parent 4121b746
......@@ -288,7 +288,9 @@ function server.new(config, logger, client, driver)
self.joblist:terminate()
self.down = true
copas.addthread(function()
copas.sleep(2)
copas.sleep(0) -- yields so Xavante can reply the HTTP request.
-- Otherwise the 'shutdown' below will terminate
-- the HTTP connection before the reply.
self.logger:info("Shutting down Xavante...")
self.rs:shutdown()
copas.sleep(0) -- to force a new COPAS 'step', so Xavante can
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment