mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 05:40:09 +00:00
[CORE] Increase SDU buffer to 32k (#2008)
This commit is contained in:
parent
43eb5f3d7f
commit
218b31d006
10 changed files with 58 additions and 29 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue