+
Skip to content

Optimize socket read #40

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

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.

WeiTang-star and others added 3 commits August 28, 2024 17:18
…ation with a more efficient JSON streaming parser
Signed-off-by: tang <38900255+WeiTang-star@users.noreply.github.com>
@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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载