Skip to content

Read full json message from socket in i3ipc.aio.connection#1

Merged
apeyser merged 3 commits intomasterfrom
apeyser-recv
Aug 29, 2024
Merged

Read full json message from socket in i3ipc.aio.connection#1
apeyser merged 3 commits intomasterfrom
apeyser-recv

Conversation

@apeyser
Copy link
Owner

@apeyser apeyser commented Aug 29, 2024

Python socket.recv takes a _maximum_length -- but may return a shorter message depending on detail of the socket state. Replaced with a socket.recv_into loop that read the entire json message.

@apeyser apeyser merged commit 3143c72 into master Aug 29, 2024
@apeyser apeyser deleted the apeyser-recv branch August 29, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant