set_req_state_err(s, op_ret);
dump_errno(s);
dump_start(s);
- end_header(s, NULL, "application/xml");
+ // Explicitly use chunked transfer encoding so that we can stream the result
+ // to the user without having to wait for the full length of it.
+ end_header(s, NULL, "application/xml", CHUNKED_TRANSFER_ENCODING);
if (! op_ret) {
list_all_buckets_start(s);
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ // Explicitly use chunked transfer encoding so that we can stream the result
+ // to the user without having to wait for the full length of it.
+ end_header(s, this, "application/xml", CHUNKED_TRANSFER_ENCODING);
dump_start(s);
if (op_ret < 0)
return;
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ // Explicitly use chunked transfer encoding so that we can stream the result
+ // to the user without having to wait for the full length of it.
+ end_header(s, this, "application/xml", CHUNKED_TRANSFER_ENCODING);
dump_start(s);
if (op_ret < 0)
return;
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ // Explicitly use chunked transfer encoding so that we can stream the result
+ // to the user without having to wait for the full length of it.
+ end_header(s, this, "application/xml", CHUNKED_TRANSFER_ENCODING);
dump_start(s);
if (op_ret == 0) {
s->formatter->open_object_section_in_ns("CopyObjectResult", XMLNS_AWS_S3);
if (op_ret)
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ // Explicitly use chunked transfer encoding so that we can stream the result
+ // to the user without having to wait for the full length of it.
+ end_header(s, this, "application/xml", CHUNKED_TRANSFER_ENCODING);
if (op_ret == 0) {
dump_start(s);
set_req_state_err(s, op_ret);
dump_errno(s);
- end_header(s, this, "application/xml");
+ // Explicitly use chunked transfer encoding so that we can stream the result
+ // to the user without having to wait for the full length of it.
+ end_header(s, this, "application/xml", CHUNKED_TRANSFER_ENCODING);
dump_start(s);
if (op_ret < 0)
return;
}
dump_start(s);
- end_header(s, this, "application/xml");
+ // Explicitly use chunked transfer encoding so that we can stream the result
+ // to the user without having to wait for the full length of it.
+ end_header(s, this, "application/xml", CHUNKED_TRANSFER_ENCODING);
s->formatter->open_object_section_in_ns("DeleteResult", XMLNS_AWS_S3);
rgw_flush_formatter(s, s->formatter);