Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: accept data only at the first time in response to a request #8084

Merged
merged 1 commit into from Mar 30, 2016

Conversation

sunfch
Copy link
Contributor

@sunfch sunfch commented Mar 14, 2016

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

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>
@cbodley
Copy link
Contributor

cbodley commented Mar 28, 2016

can you help me understand why receive_data() is being called multiple times? I haven't seen this one in testing

@cbodley cbodley self-assigned this Mar 28, 2016
@sunfch
Copy link
Contributor Author

sunfch commented Mar 29, 2016

@cbodley
when the content length of http body data are larger than 1500 bytes,
the receive_data() function could be called multiple times because of the limit of Ethernet MTU.
The content length of your http header could be less than 1500 bytes.

@cbodley cbodley merged commit e95eb53 into ceph:master Mar 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants