Skip to content

Commit 283802f

Browse files
committed
fix to zmq socket receive on end of long message
1 parent 9b0534f commit 283802f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/pyscript/jupyter_kernel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async def recv(self, multipart=False):
120120
# _LOGGER.debug(f"recv: got cmd={cmd}, params={params}")
121121
else:
122122
parts.append(msg_body)
123-
if cmd == 0x0:
123+
if cmd == 0x0 or cmd == 0x2:
124124
# _LOGGER.debug(f"recv: got msg {parts}")
125125
if not multipart:
126126
return b''.join(parts)

0 commit comments

Comments
 (0)