Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large JSON messages over i3ipc socket are truncated #213

Open
apeyser opened this issue Aug 29, 2024 · 0 comments
Open

Large JSON messages over i3ipc socket are truncated #213

apeyser opened this issue Aug 29, 2024 · 0 comments
Assignees
Labels

Comments

@apeyser
Copy link

apeyser commented Aug 29, 2024

Current code calls socket.recv with the size of the json message from the struct_header; this assumes incorrectly that the message can be read in a single slurp. Instead, scoket.recv_into should be used to read in chunks until the full message is read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants