grpc channel close problem - Go语言中文社区

grpc channel close problem


Because don't log close error, so not knowing the root cause, but can has some doubt

when fields too much, seems like that the channel is closed.

maybe due to msg size!

solution:add logInfo when fail;

make eventset number per vector configurable?但是用户也不清楚多大好,最好是自适应地调整,调整到最适合网络传输的大小(是否有相关文献)& 不超过最大wire size(应该把wire size设置为最适宜的大小吧,这个可以让用户配置,目前就是用户设置,所以最好还是保持这个操作,让用户控制)

should make reader receive maxSize configurable?

版权声明:本文来源简书,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://www.jianshu.com/p/df3916d1f278
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-02-02 14:55:54
  • 阅读 ( 1185 )
  • 分类:

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢