Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
5b10c871
Commit
5b10c871
authored
4 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
mxsock: preallocate buffer
Change-Id: I337c6e440d85fb3c4c33b023766d5241e88e9977
parent
28dd9502
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/jamidht/multiplexed_socket.cpp
+1
-1
1 addition, 1 deletion
src/jamidht/multiplexed_socket.cpp
with
1 addition
and
1 deletion
src/jamidht/multiplexed_socket.cpp
+
1
−
1
View file @
5b10c871
...
...
@@ -462,7 +462,7 @@ MultiplexedSocket::write(const uint16_t& channel,
ec
=
std
::
make_error_code
(
std
::
errc
::
message_size
);
return
-
1
;
}
msgpack
::
sbuffer
buffer
;
msgpack
::
sbuffer
buffer
(
len
+
16
)
;
msgpack
::
packer
<
msgpack
::
sbuffer
>
pk
(
&
buffer
);
pk
.
pack_array
(
2
);
pk
.
pack
(
channel
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment