ppshobi / psonic

Sonic is a super fast auto suggestion engine built by the team at crisp.chat, a customer engagement platform. its built in Rust and they officially support a javascript client, but if you want to use sonic via php, this is the library that you can look for. Completely unit tested, and adheres to modern coding standards, and offers a clean api to interact with sonic.
MIT License
130 stars 9 forks source link

Server response is not complete #22

Closed smoothsea closed 1 year ago

smoothsea commented 3 years ago

When I set a big query limitation,I found the result of the response is not complete. I check the code:

./Client.php:
56: $message = stream_get_line($this->resource, 2048, "\r\n");
ppshobi commented 3 years ago

Yes, I believe we need to read until there is empty read is occurred. But mostly 2mb worth of suggestions will help you reach a long way. But could you try to send a PR patching this issue? I can review it and merge quickly? Currently I am super packed with work.

smoothsea commented 3 years ago

Okay, I will try. Thanks for your reply.

n0099 commented 1 year ago

23