vihunk
vihunk
@kirayunfei 1. 应该不需要加锁,判断超时的逻辑是单独一个线程在执行检查 2.整个业务执行的逻辑应该不是在netty的io线程内,而是后面的业务的客户端业务线程,io线程只负责底层的数据收发,连接管理
@kirayunfei 不会出现你说的极端情况执行两次doRecevied方法。 对外都是调用下面的rececved方法,此方法会从全局mapping中移除之前的任务,只会有一个线程移除成功,不过肯定会出现(不可避免)刚认为超时而服务器有响应。 另外:加锁的目的是为了实现线程通知机制,因为有线程在等待服务器的结果(一般是业务处理线程池的线程),如果如你所说在netty的io线程发起rpc,那这种问题本身是用框架不熟悉机制产生的后果,一般情况下也没人这么用。 public static void received(Channel channel, Response response) { try { DefaultFuture future = FUTURES.remove(response.getId()); if (future != null) { future.doReceived(response); } else { logger.warn("The timeout response...
官方可以规划路线,一部分由官方团队实现,另一部分 看看是否可以建立dubbo社区,由社区爱好者进行扩充,朝多元化发展完善,变成社区版,官方版再根据实际情况看是否需要集成。 我相信很多人愿意加入到社区版里面。
The code's readability needs to improve.
reactive api, thanks.
I'm sorry, maybe I didn't descibe clearly. For problem 1: I'll try later, thanks! For problem 2: The pool wasn't exhausted, and it just can allocate new connnections(Because pool max...
add one picture for explain how problem happens. 
Threads(Netty IO thread) were blocked on get() when deadlock happens.  
Hi @mp911de, I have used the reactive Spring data Redis API, and the calling was triggered by lettuce-core. We are using Spring session(distributed session base on redis), and if has...
Hi @mp911de, there is the full stack trace, please help me to review this, thanks! [app-stack.log](https://github.com/lettuce-io/lettuce-core/files/4698738/app-stack.log)