Re: [I] server中brpc::StreamWait卡在了thread::TaskGroup::sched_to (brpc)

2024-07-10 Thread via GitHub


chenBright closed issue #2680: 
server中brpc::StreamWait卡在了thread::TaskGroup::sched_to
URL: https://github.com/apache/brpc/issues/2680


-- 
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-unsubscr...@brpc.apache.org

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


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



Re: [I] server中brpc::StreamWait卡在了thread::TaskGroup::sched_to (brpc)

2024-07-09 Thread via GitHub


GreateCode commented on issue #2680:
URL: https://github.com/apache/brpc/issues/2680#issuecomment-2216963252

   > > 另外brpc::StreamClose也释放不了,对吧。
   > 
   > 可以释放的。
   > 
   > > brpc目前还没支持tcp_user_timeout吧
   > 
   > 后续提个PR支持tcp_user_timeout。
   
   👍🏻


-- 
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-unsubscr...@brpc.apache.org

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


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



Re: [I] server中brpc::StreamWait卡在了thread::TaskGroup::sched_to (brpc)

2024-07-08 Thread via GitHub


chenBright commented on issue #2680:
URL: https://github.com/apache/brpc/issues/2680#issuecomment-2216710439

   > 另外brpc::StreamClose也释放不了,对吧。
   
   可以释放的。
   
   > brpc目前还没支持tcp_user_timeout吧
   
   后续提个PR支持tcp_user_timeout。
   


-- 
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-unsubscr...@brpc.apache.org

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


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



Re: [I] server中brpc::StreamWait卡在了thread::TaskGroup::sched_to (brpc)

2024-07-08 Thread via GitHub


GreateCode commented on issue #2680:
URL: https://github.com/apache/brpc/issues/2680#issuecomment-2213837811

   > tcp_user_timeout
   
   brpc目前还没支持tcp_user_timeout吧。
   另外brpc::StreamClose也释放不了,对吧。


-- 
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-unsubscr...@brpc.apache.org

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


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



Re: [I] server中brpc::StreamWait卡在了thread::TaskGroup::sched_to (brpc)

2024-07-08 Thread via GitHub


chenBright commented on issue #2680:
URL: https://github.com/apache/brpc/issues/2680#issuecomment-2213600923

   idle机制不能解决这个问题。
   
   可能需要借助tcp_user_timeout(#1154)来断开连接。


-- 
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-unsubscr...@brpc.apache.org

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


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



Re: [I] server中brpc::StreamWait卡在了thread::TaskGroup::sched_to (brpc)

2024-07-06 Thread via GitHub


GreateCode commented on issue #2680:
URL: https://github.com/apache/brpc/issues/2680#issuecomment-2212300609

   有道理,这样的话,一定时期内都是EAGAIN,while里就判定连接断开,然后return结束。
   但是server的连接资源怎么释放?如果sever配置了ServerOptions.idle_timeout_sec=100, 
那么超过100s后,server会把该连接释放吗?
   


-- 
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-unsubscr...@brpc.apache.org

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


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



Re: [I] server中brpc::StreamWait卡在了thread::TaskGroup::sched_to (brpc)

2024-07-06 Thread via GitHub


chenBright commented on issue #2680:
URL: https://github.com/apache/brpc/issues/2680#issuecomment-2211784543

   
StreamWrite没有返回网络错误,一直返回EAGAIN的话,应该是client挂了,但是server并没有感知到tcp连接断开,发送的数据没有收到client的ack,随后写不进去内核缓冲区后,就一直返回EAGAIN。


-- 
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-unsubscr...@brpc.apache.org

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


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



Re: [I] server中brpc::StreamWait卡在了thread::TaskGroup::sched_to (brpc)

2024-07-05 Thread via GitHub


GreateCode commented on issue #2680:
URL: https://github.com/apache/brpc/issues/2680#issuecomment-2210516950

   @jamesge 


-- 
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-unsubscr...@brpc.apache.org

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


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



Re: [I] server中brpc::StreamWait卡在了thread::TaskGroup::sched_to (brpc)

2024-07-04 Thread via GitHub


GreateCode commented on issue #2680:
URL: https://github.com/apache/brpc/issues/2680#issuecomment-2208702573

   @chenBright @wwbmmm 大佬~


-- 
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-unsubscr...@brpc.apache.org

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


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



[I] server中brpc::StreamWait卡在了thread::TaskGroup::sched_to (brpc)

2024-07-04 Thread via GitHub


GreateCode opened a new issue, #2680:
URL: https://github.com/apache/brpc/issues/2680

   **Describe the bug (描述bug)**
   server给client端发送几十个G的数据,期间client挂。
   StreamWait的due_time设置的是100ms(是错的,应该是时间点),但也不应该卡住吧。
   client挂和StreamWait卡住先后顺序不确定。
   栈信息如图,请大佬帮忙看看是什么原因。
   
   `
   while(1) {
int ec = brpc::StreamWrite();
if (ec == EINVAL) { return; }
   
if (ec == EAGAIN) {
 auto ret = brpc::StreamWait(stream_id, &due_time);
 if (ret == EINVAL) { return; }
}
   }
   `
   
   **To Reproduce (复现方法)**
   极难复现。
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS:ubuntu 20.04
   Compiler:clang
   brpc: 1.8.0
   protobuf:3.15
   
   **Additional context/screenshots (更多上下文/截图)**
   
   
![image](https://github.com/apache/brpc/assets/9795716/72a531de-fb39-42fe-8ac7-3def1f460c89)
   


-- 
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-unsubscr...@brpc.apache.org.apache.org

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


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