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

   **Describe the bug (描述bug)**
   
   client和server端建立stream用于传输数据,建好后直接sleep,此时重启server
   
   这个时候client的其他线程再和这个server端建立stream的时候,报 [E112]Not connected to
   
   查看对应socket状态
   
   # This is a broken Socket
   version=1
   shared_part={
     ref_count=1
     socket_pool=null
     creator_socket=1244
     in_size=71033083
     in_num_messages=8986
     out_size=139334
     out_num_messages=3799
   }
   nref=3
   nevent=1
   
   
   感觉是sleep的线程通过stream使用socket的引用计数+1,在sleep结束,close stream前,这个socket无法回收
   
   后续建立stream的时候都使用这个socket,但是这个socket是broken的
   
   
   **To Reproduce (复现方法)**
   
   
   **Expected behavior (期望行为)**
   这种情况是否应该强制回收stream和socket
   
   **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.

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

Reply via email to