diff --git a/src/dht_proxy_client.cpp b/src/dht_proxy_client.cpp index 278f95a1..db112190 100644 --- a/src/dht_proxy_client.cpp +++ b/src/dht_proxy_client.cpp @@ -303,7 +303,7 @@ DhtProxyClient::get(const InfoHash& key, GetCallback cb, DoneCallback donecb, Va try { auto request = buildRequest("/" + key.toString()); auto reqid = request->id(); - request->set_connection_type(restinio::http_connection_header_t::keep_alive); + //request->set_connection_type(restinio::http_connection_header_t::keep_alive); request->set_method(restinio::http_method_get()); setHeaderFields(*request); diff --git a/src/dht_proxy_server.cpp b/src/dht_proxy_server.cpp index 3d5966a7..78bbd2cd 100644 --- a/src/dht_proxy_server.cpp +++ b/src/dht_proxy_server.cpp @@ -389,7 +389,6 @@ HttpResponse DhtProxyServer::initHttpResponse(HttpResponse response) const response.append_header("Server", "RESTinio"); response.append_header(restinio::http_field::content_type, "application/json"); response.append_header(restinio::http_field::access_control_allow_origin, "*"); - response.connection_keep_alive(); return response; }