Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
7e9182f3
Commit
7e9182f3
authored
Apr 08, 2016
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extmod/modwebsocket: Make sure to propagate EOF.
parent
b32b0d38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
extmod/modwebsocket.c
extmod/modwebsocket.c
+1
-1
No files found.
extmod/modwebsocket.c
View file @
7e9182f3
...
...
@@ -68,7 +68,7 @@ STATIC mp_uint_t websocket_read(mp_obj_t self_in, void *buf, mp_uint_t size, int
while
(
1
)
{
if
(
self
->
to_recv
!=
0
)
{
mp_uint_t
out_sz
=
stream_p
->
read
(
self
->
sock
,
self
->
buf
+
self
->
buf_pos
,
self
->
to_recv
,
errcode
);
if
(
out_sz
==
MP_STREAM_ERROR
)
{
if
(
out_sz
==
0
||
out_sz
==
MP_STREAM_ERROR
)
{
return
out_sz
;
}
self
->
buf_pos
+=
out_sz
;
...
...
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