]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: accept data only at the first time in response to a request 8084/head
authorsunspot <sunspot0105@gmail.com>
Mon, 14 Mar 2016 08:03:14 +0000 (16:03 +0800)
committersunspot <sunspot0105@gmail.com>
Tue, 15 Mar 2016 09:55:12 +0000 (17:55 +0800)
commit98cf431259bc05d73d2c581302afac8cf34a6c1a
tree1bf0417920fbc3a111cd0c30c182757c61d03cfc
parente530ade4d4c825e6a5b036e016eff6d3affea0d7
rgw: accept data only at the first time in response to a request

Because the member "max_response" in class "RGWRESTSimpleRequest" is
initialized 0, data packages cannot be accepted when the function
"receive_data()" is called again.

This patch initialize the value of "max_response" to "content-length".

Signed-off-by: sunspot <sunspot0105@gmail.com>
src/rgw/rgw_rest_client.cc
src/rgw/rgw_rest_client.h