Skip to content

Commit 50bc073

Browse files
committed
change chunk size to 1GiB
1 parent 5551a1c commit 50bc073

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/native/http_request_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static int s_aws_input_stream_read(struct aws_input_stream *stream, struct aws_b
9494
}
9595

9696
size_t out_remaining = dest->capacity - dest->len;
97-
size_t chunk_size = 1024;
97+
size_t chunk_size = 1024 * 1024 * 1024;
9898
/* Newer updates allow part sizes up to 5GB. Since number of bytes required for a 5GB part is
9999
greater than INT_MAX, it would cause a bug where the java does not allocate memory and return a null buffer
100100
since Java natively does not support direct allocation of buffers of capacity > Integer.MAX_VALUE.

0 commit comments

Comments
 (0)