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

Optimize socket read #40

Merged
merged 3 commits into from
Aug 28, 2024
Merged

Conversation

WeiTang-star
Copy link
Contributor

Apologies for the oversight in my previous commit. I mistakenly left the old socket.read logic (data += chunk; while (!_str_is_json(data)) { chunk = await new_sock.read(); data += chunk; }) in the code. In this new commit, I have removed the outdated logic and replaced it with the new method let result = await readAndParseSocket(new_sock); to handle JSON parsing more efficiently. Sorry for any inconvenience caused.

@lmangani lmangani merged commit 2e1f29c into QXIP:master Aug 28, 2024
1 check passed
@lmangani
Copy link
Member

Thanks @WeiTang-star release 2.1.8 has been regenerated, feel free to test and confirm if you want to.

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.

2 participants