-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Gnet hangs on receive incomplete request #297
Comments
Use |
i have using dlv and find the reason just like the title: Gnet hangs on receive incomplete request |
Share more details with me? |
the redis-bench is hung and for the example the buf is always nil. you can try the cmd by you self: |
@slow-zhang @panjf2000 Please see this example of using client in gnet: https://github.com/Spongecaptain/gnet-examples/blob/master/examples/custom_codec/protocol/pb.go#L95, it may help. |
thanks for helping! i will fix it later |
after I fixed this error , the code can not even pass the benchmark when one client send one request (-c 1, -n 1) here is the code after fixed: https://github.com/slow-zhang/gnet-test/blob/main/main.go#L142 |
Please upgrade to gnet v1.6.4 and try again. |
so can i assume that there is a bug fix for it? |
What is your question about gnet?
i implement a redis server using gnet, but it can only pass the benchmark when one client send one request (-c 1, -n 1)
this is
/usr/local/opt/[email protected]/bin/redis-benchmark -t set,get -n 1 -d 100000 -r 100000 -c 1 -p <port>
when set multi request (-c 1, -n 10)
this is
/usr/local/opt/[email protected]/bin/redis-benchmark -t set,get -n 10 -d 100000 -r 100000 -c 1 -p <port>
here is my impl https://github.com/slow-zhang/gnet-test, am I use gnet by the error way?
The text was updated successfully, but these errors were encountered: