Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于startErrorWorker中closeSocket(curSocket);问题 #17

Open
shijw823 opened this issue Jul 1, 2015 · 0 comments
Open

关于startErrorWorker中closeSocket(curSocket);问题 #17

shijw823 opened this issue Jul 1, 2015 · 0 comments

Comments

@shijw823
Copy link

shijw823 commented Jul 1, 2015

你好,作者
startErrorWorker线程是会一直检查是否有错误响应发生,直到有错误响应发生重新建立连接重发队列中的数据(会启动一个新的startErrorWorker线程1),重发完毕(finally中关闭socket连接,会导致启动一个新的startErrorWorker线程2),startErrorWorker线程1没有发现错误会一直运行,startErrorWorker线程2也一直运行,startErrorWorker线程2浪费资源,没有必要。
以上是我的分析,请作者给予解释。

@shijw823 shijw823 closed this as completed Jul 1, 2015
@shijw823 shijw823 reopened this Jul 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant