You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2021/05/22 02:35:21 UTC

[GitHub] [incubator-brpc] yqynju opened a new issue #1410: process hang, since EPOLLOUT loop wait fd

yqynju opened a new issue #1410:
URL: https://github.com/apache/incubator-brpc/issues/1410


   **Describe the bug (描述bug)**
   
   /brpc/src/brpc/socket.cpp:1196] Fail to wait EPOLLOUT of fd=187: Connection timed out
   /brpc/src/brpc/socket.cpp:1196] Fail to wait EPOLLOUT of fd=187: Connection timed out
   /brpc/src/brpc/socket.cpp:1196] Fail to wait EPOLLOUT of fd=187: Connection timed out
   /brpc/src/brpc/socket.cpp:1196] Fail to wait EPOLLOUT of fd=187: Connection timed out
   
   timeout loop, not exit any more.
   
   the process is hang, do not handle any request.
   
   **To Reproduce (复现方法)**
   
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS:
   Compiler:
   brpc:
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] yqynju commented on issue #1410: process hang, since EPOLLOUT loop wait fd

Posted by GitBox <gi...@apache.org>.
yqynju commented on issue #1410:
URL: https://github.com/apache/incubator-brpc/issues/1410#issuecomment-851928747


   --usercode_in_pthread=true


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] lorinlee commented on issue #1410: process hang, since EPOLLOUT loop wait fd

Posted by GitBox <gi...@apache.org>.
lorinlee commented on issue #1410:
URL: https://github.com/apache/incubator-brpc/issues/1410#issuecomment-864530238


   如果client遇到超时关闭连接,但是server端还卡在和backupend通信中,并未结束请求,这时候CLOSE_WAIT是符合预期的


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] believeyourself commented on issue #1410: process hang, since EPOLLOUT loop wait fd

Posted by GitBox <gi...@apache.org>.
believeyourself commented on issue #1410:
URL: https://github.com/apache/incubator-brpc/issues/1410#issuecomment-1002840289


   现在解决了嘛?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] yqynju commented on issue #1410: process hang, since EPOLLOUT loop wait fd

Posted by GitBox <gi...@apache.org>.
yqynju commented on issue #1410:
URL: https://github.com/apache/incubator-brpc/issues/1410#issuecomment-851913597


   场景就是,
   client --- server --- backupend
   如果client侧的timeout_ms比server到backupend的timeout_ms小的时候。
   
   client超时,断开连接,server感知不到,导致链接处于CLOSE_WAIT,当超过了系统连接限制就进入假死状态。
   
   ![image](https://user-images.githubusercontent.com/3240660/120287756-22ffdd80-c2f2-11eb-87af-5dad21e81161.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] yqynju commented on issue #1410: process hang, since EPOLLOUT loop wait fd

Posted by GitBox <gi...@apache.org>.
yqynju commented on issue #1410:
URL: https://github.com/apache/incubator-brpc/issues/1410#issuecomment-851962763


   > --usercode_in_pthread=true
   
   去掉这个,CLOSE_WAIT很快就释放了,如果存在这个配置,CLOSE_WAIT会一直存在。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] yqynju commented on issue #1410: process hang, since EPOLLOUT loop wait fd

Posted by GitBox <gi...@apache.org>.
yqynju commented on issue #1410:
URL: https://github.com/apache/incubator-brpc/issues/1410#issuecomment-851913884


   > > 对端启动了吗?
   > 
   > 能提供下最小复现的代码吗,可能不是对端没有启动的原因
   
   场景就是,
   client --- server --- backupend
   如果client侧的timeout_ms比server到backupend的timeout_ms小的时候。
   
   client超时,断开连接,server感知不到,导致链接处于CLOSE_WAIT,当超过了系统连接限制就进入假死状态。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] hotaery commented on issue #1410: process hang, since EPOLLOUT loop wait fd

Posted by GitBox <gi...@apache.org>.
hotaery commented on issue #1410:
URL: https://github.com/apache/incubator-brpc/issues/1410#issuecomment-846987719


   > 对端启动了吗?
   
   能提供下最小复现的代码吗,可能不是对端没有启动的原因


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] hotaery commented on issue #1410: process hang, since EPOLLOUT loop wait fd

Posted by GitBox <gi...@apache.org>.
hotaery commented on issue #1410:
URL: https://github.com/apache/incubator-brpc/issues/1410#issuecomment-846722641


   对端启动了吗?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org