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

Fix superfluous exception when socket read returns less than the requ… #2

Merged
merged 1 commit into from
May 19, 2015

Conversation

klhowell
Copy link
Contributor

…ested number of bytes

This problem was observed when using the implementation on Motorola MotoG and MotoE phones. The initial call to read(buffer, 0, length) with a 3-byte request would only return 1 byte. This would result in a WebSocketException and closing of the socket. However, a subsequent call to read() would return the remaining bytes.

@TakahikoKawasaki
Copy link
Owner

Thank you very much for your finding the bug.

TakahikoKawasaki pushed a commit that referenced this pull request May 19, 2015
Fix superfluous exception when socket read returns less than the requ…
@TakahikoKawasaki TakahikoKawasaki merged commit 883bf29 into TakahikoKawasaki:master May 19, 2015
@TakahikoKawasaki
Copy link
Owner

I'll release a new version (1.4) soon.

@TakahikoKawasaki
Copy link
Owner

Version 1.4 was released. (nv-websocket-client|1.4|jar)

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.

None yet

2 participants