lib/grenache/http.rb in grenache-ruby-http-0.2.4 vs lib/grenache/http.rb in grenache-ruby-http-0.2.7

- old
+ new

@@ -17,9 +17,15 @@ e, payload = block.call(req, fingerprint) err = e.kind_of?(Exception) ? e.message : e [200,nil, ServiceMessage.new(payload, err, req.rid).to_json] } server = Thin::Server.new config.service_host, port, {signals: false}, app + + if config.thin_threaded + server.threaded = true + server.threadpool_size = config.thin_threadpool_size + end + if tls? server.ssl = true server.ssl_options = { private_key_file: config.key, cert_chain_file: config.cert_pem,