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

AndroidApp: Sometimes socket closure is not detected #2

Closed
madmaxoft opened this issue May 14, 2019 · 1 comment · Fixed by #4
Closed

AndroidApp: Sometimes socket closure is not detected #2

madmaxoft opened this issue May 14, 2019 · 1 comment · Fixed by #4

Comments

@madmaxoft
Copy link
Owner

Sometimes the app doesn't detect socket closure, which results in the app running in busy-loop (select - got 1 socket - read 0 bytes - repeat) and at the same time the app won't connect to the remote peer because it's still blacklisted.

@madmaxoft
Copy link
Owner Author

When the connection is closed properly, the Channel.read() method returns -1, which isn't detected in the code.

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 a pull request may close this issue.

1 participant