summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_http_client.h
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@redhat.com>2017-11-04 04:26:31 +0100
committerYehuda Sadeh <yehuda@redhat.com>2018-04-10 17:05:39 +0200
commit4bcd842df14bd1ed8a090e8e96a468c419e83f33 (patch)
tree12cd27f85a33163ce2ca5b53c4d3ec5892df72af /src/rgw/rgw_http_client.h
parentrgw: http_client, add the ability to pause/unpause incoming data (diff)
downloadceph-4bcd842df14bd1ed8a090e8e96a468c419e83f33.tar.xz
ceph-4bcd842df14bd1ed8a090e8e96a468c419e83f33.zip
rgw: cr rest splice, both reads and writes are throttled
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Diffstat (limited to 'src/rgw/rgw_http_client.h')
-rw-r--r--src/rgw/rgw_http_client.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rgw/rgw_http_client.h b/src/rgw/rgw_http_client.h
index cdd33e01c5b..9c64feb19aa 100644
--- a/src/rgw/rgw_http_client.h
+++ b/src/rgw/rgw_http_client.h
@@ -65,7 +65,6 @@ class RGWHTTPClient : public RGWIOProvider
bufferlist send_bl;
bufferlist::iterator send_iter;
- size_t send_len;
bool has_send_len;
long http_status;
size_t receive_pause_skip{0}; /* how many bytes to skip next time receive_data is called
@@ -85,6 +84,8 @@ protected:
string method;
string url;
+ size_t send_len{0};
+
param_vec_t headers;
RGWHTTPManager *get_manager();
@@ -139,8 +140,7 @@ public:
explicit RGWHTTPClient(CephContext *cct,
const string& _method,
const string& _url)
- : send_len(0),
- has_send_len(false),
+ : has_send_len(false),
http_status(HTTP_STATUS_NOSTATUS),
req_data(nullptr),
verify_ssl(cct->_conf->rgw_verify_ssl),