Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
b2866236
Commit
b2866236
authored
Dec 21, 2014
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #449 from ursine/patch-1
64-bit length fields on ARM don't work
parents
66450bf3
8cad0a72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
mongoose.c
mongoose.c
+4
-3
No files found.
mongoose.c
View file @
b2866236
...
...
@@ -2962,9 +2962,10 @@ size_t mg_websocket_write(struct mg_connection *conn, int opcode,
}
else
{
// 64-bit length field
copy
[
1
]
=
127
;
*
(
uint32_t
*
)
(
copy
+
2
)
=
(
uint32_t
)
htonl
((
uint32_t
)
((
uint64_t
)
data_len
>>
32
));
*
(
uint32_t
*
)
(
copy
+
6
)
=
(
uint32_t
)
htonl
(
data_len
&
0xffffffff
);
const
uint32_t
hi
=
htonl
((
uint32_t
)
((
uint64_t
)
data_len
>>
32
));
const
uint32_t
lo
=
htonl
(
data_len
&
0xffffffff
);
memcpy
(
copy
+
2
,
&
hi
,
sizeof
(
hi
));
memcpy
(
copy
+
6
,
&
lo
,
sizeof
(
lo
));
memcpy
(
copy
+
10
,
data
,
data_len
);
copy_len
=
10
+
data_len
;
}
...
...
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