diff --git a/src/dht_proxy_client.cpp b/src/dht_proxy_client.cpp index 278f95a1c2cc83ca5aff8e07a438aa025783d6cc..db112190e4334bd9bf99fc2c730424a54e5c30dd 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 3d5966a765ad27161be9feff62fec30228283112..78bbd2cd3f46ccc1bac16793acfd0e8aafa18802 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; }