mirror of
https://github.com/nextepc/nextepc-oss.git
synced 2025-11-03 05:13:15 +00:00
[CORE] Increase SDU buffer to 32k (#2008)
This commit is contained in:
@@ -2239,7 +2239,7 @@ static int on_part_data(
|
||||
} else {
|
||||
offset = data->part[data->num_of_part].content_length;
|
||||
if ((data->part[data->num_of_part].content_length + length) >
|
||||
OGS_HUGE_LEN) {
|
||||
OGS_MAX_SDU_LEN) {
|
||||
ogs_error("Overflow length [%d:%d]",
|
||||
(int)data->part[data->num_of_part].content_length,
|
||||
(int)length);
|
||||
@@ -2414,12 +2414,12 @@ static bool build_multipart(
|
||||
strcpy(boundary, "=-");
|
||||
ogs_base64_encode_binary(boundary + 2, digest, 16);
|
||||
|
||||
p = http->content = ogs_calloc(1, OGS_HUGE_LEN);
|
||||
p = http->content = ogs_calloc(1, OGS_MAX_SDU_LEN);
|
||||
if (!p) {
|
||||
ogs_error("ogs_calloc() failed");
|
||||
return false;
|
||||
}
|
||||
last = p + OGS_HUGE_LEN;
|
||||
last = p + OGS_MAX_SDU_LEN;
|
||||
|
||||
/* First boundary */
|
||||
p = ogs_slprintf(p, last, "--%s\r\n", boundary);
|
||||
|
||||
Reference in New Issue
Block a user