Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Calling close on response body inside child process #38

Closed
wants to merge 2 commits into
from
Jump to file or symbol
Failed to load files and symbols.
+3 −2
Split
View
@@ -125,11 +125,11 @@ app =
run Shotgun::Loader.new(config) {
case env
when 'development'
- use Rack::CommonLogger, STDERR unless server.name =~ /CGI/
+ #use Rack::CommonLogger, STDERR unless server.name =~ /CGI/
use Rack::ShowExceptions
use Rack::Lint
when 'deployment', 'production'
- use Rack::CommonLogger, STDERR unless server.name =~ /CGI/
+ #use Rack::CommonLogger, STDERR unless server.name =~ /CGI/
end
}
end
View
@@ -94,6 +94,7 @@ def proceed_as_child
], @writer)
ensure
@writer.close
+ body.close if body.respond_to? :close
exit! boom ? 1 : 0
end