Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
59a4fee5
Commit
59a4fee5
authored
Apr 13, 2016
by
Paul Sokolovsky
Browse files
extmod/modwebsocket: Another case to propagate EOF.
parent
733db525
Changes
1
Hide whitespace changes
Inline
Side-by-side
extmod/modwebsocket.c
View file @
59a4fee5
...
...
@@ -155,7 +155,7 @@ STATIC mp_uint_t websocket_read(mp_obj_t self_in, void *buf, mp_uint_t size, int
case
PAYLOAD
:
{
size_t
sz
=
MIN
(
size
,
self
->
msg_sz
);
mp_uint_t
out_sz
=
stream_p
->
read
(
self
->
sock
,
buf
,
sz
,
errcode
);
if
(
out_sz
==
MP_STREAM_ERROR
)
{
if
(
out_sz
==
0
||
out_sz
==
MP_STREAM_ERROR
)
{
return
out_sz
;
}
...
...
Write
Preview
Supports
Markdown
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