Skip to content

Update XTcpClient.java #5

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update XTcpClient.java #5

wants to merge 1 commit into from

Conversation

gouweisui
Copy link

7.0Socket源码修改了close方法(源码注释:Once a socket has been closed, it is not available for further networking use (i.e. can't be reconnected or rebound). A new socket needs to be created.) 所以框架原有断开重连的方法就不能生效 需要重新new Socket 但是原有方法这里传入新的socket会抛出异常 所以这里改成isClosed来判断

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

Successfully merging this pull request may close these issues.

1 participant