You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by hu...@apache.org on 2019/03/14 14:03:07 UTC

[hawq] 04/05: HAWQ-1684. Add connection close in header for cloud rest

This is an automated email from the ASF dual-hosted git repository.

huor pushed a commit to branch huor_cloud
in repository https://gitbox.apache.org/repos/asf/hawq.git

commit 073fa07c4f710a3ac3ac02af1c9c0d09818827d6
Author: wcl14 <wa...@126.com>
AuthorDate: Fri Jun 29 11:18:36 2018 +0800

    HAWQ-1684. Add connection close in header for cloud rest
---
 src/backend/libpq/cloudrest.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/backend/libpq/cloudrest.c b/src/backend/libpq/cloudrest.c
index 3d0eb08..dec2548 100644
--- a/src/backend/libpq/cloudrest.c
+++ b/src/backend/libpq/cloudrest.c
@@ -142,6 +142,7 @@ static int call_cloud_rest(CURL_HANDLE curl_handle, const char* request, char *a
 		elog(DEBUG3, "in call_cloud_rest: %s", buf);
 		headers = curl_slist_append(headers, buf);
 	}
+	headers = curl_slist_append(headers, "connection:close");
 	curl_easy_setopt(curl_handle->curl_handle, CURLOPT_HTTPHEADER, headers);
 
 	curl_easy_setopt(curl_handle->curl_handle, CURLOPT_POSTFIELDS, request);