Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
mongoose
Commits
5034937a
Commit
5034937a
authored
Oct 24, 2015
by
Deomid Ryabkov
Committed by
Marko Mikulicic
Oct 30, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set more reasonable WS buffer size
PUBLISHED_FROM=ecfc284747f1b3eef5c40dd74b4af19f4618edcc
parent
060045be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mongoose.c
mongoose.c
+2
-2
No files found.
mongoose.c
View file @
5034937a
...
...
@@ -4023,7 +4023,7 @@ void mg_send_websocket_framev(struct mg_connection *nc, int op,
void
mg_printf_websocket_frame
(
struct
mg_connection
*
nc
,
int
op
,
const
char
*
fmt
,
...)
{
char
mem
[
4192
],
*
buf
=
mem
;
char
mem
[
BUFSIZ
],
*
buf
=
mem
;
va_list
ap
;
int
len
;
...
...
@@ -6329,7 +6329,7 @@ int mg_avprintf(char **buf, size_t size, const char *fmt, va_list ap) {
va_end
(
ap_copy
);
}
/* LCOV_EXCL_STOP */
}
else
if
(
len
>
(
int
)
size
)
{
}
else
if
(
len
>
=
(
int
)
size
)
{
/* Standard-compliant code path. Allocate a buffer that is large enough. */
if
((
*
buf
=
(
char
*
)
MG_MALLOC
(
len
+
1
))
==
NULL
)
{
len
=
-
1
;
/* LCOV_EXCL_LINE */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment