yqynju

Results 5 comments of yqynju

please do performance after a few random search

场景就是, 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)

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

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