You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2020/12/15 11:58:44 UTC

[GitHub] [dubbo-getty] watermelo commented on issue #55: 关于demo的问题

watermelo commented on issue #55:
URL: https://github.com/apache/dubbo-getty/issues/55#issuecomment-745243174


   > 看了demo的源码,也尝试运行了一下,有一个问题不是很明白。就是OnCron运行时如果发现超时了,会关闭session,但是为什么每次关闭之后,又会有一OnOpen事件发生?这个实现是在哪里完成的?
   
   client 会维持和 server 的连接数,当 OnCron 超时会关闭session然后检查连接数决定是否重连,调用链如下
   
   ```
   func (c *client) reConnect()
   
   session.stop() -> reConnect() -> connect()
   ```


----------------------------------------------------------------
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: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org