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

发现两个问题 #2

Open
Camen9527 opened this issue Feb 28, 2018 · 7 comments
Open

发现两个问题 #2

Camen9527 opened this issue Feb 28, 2018 · 7 comments

Comments

@Camen9527
Copy link

  1. 起两组 grpc server A、B,A 的 client 请求 A,此时 A 作为 B 的 client 请求 B,会一直处于 loading 状态,无限等待。B 这边没有任何日志记录。
  2. 请求体如果过大,客户端也会一直处在等待状态,服务端无任何日志记录。尝试更改过 swoole package 相关参数,无效。
@LinkedDestiny
Copy link
Member

修复中

@LinkedDestiny
Copy link
Member

问题1:修改配置文件中worker_num数量为2或者2的倍数可以解决

@LinkedDestiny
Copy link
Member

问题2:目前没有发现具体原因,但是可以确定跟swoole本身的包机制没有关系。现在可以确定的是单个包大小不能超过64KB,可能跟gRPC底层的实现有关联,还需进一步确认

@Camen9527
Copy link
Author

跟我测试的结果类似,当包过大时,swoole server 这边并没有收到 request,也没有触发 request 事件。而 grpc 客户端一直 waiting。

单侧了下 swoole http server,大几倍的包,都是没问题的。

@Camen9527
Copy link
Author

问题2,还继续在排查么,还是暂时搁置呢?

@LinkedDestiny
Copy link
Member

LinkedDestiny commented Mar 7, 2018 via email

@flyinghail
Copy link

最新版的 swoole 或许可以?
swoole 2.2/4.0 有一条 Fixed http2 server cannot send more than 16k of data

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

No branches or pull requests

3 participants