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 *Connection.Read() total bytes count on error #71

Merged
merged 1 commit into from Jul 9, 2015

Conversation

GeertJohan
Copy link
Contributor

I noticed that the total read bytes count returned *Connection.Read() could be off from the actual number of read bytes when an error occurred. In some cases a net.Conn can read bytes (n>0) while also returning with an error (for example: EOF).

@khaf
Copy link
Collaborator

khaf commented Jul 2, 2015

Good catch, thanks.

@GeertJohan
Copy link
Contributor Author

@khaf can you merge this (and other open PR's) into master?

@khaf
Copy link
Collaborator

khaf commented Jul 8, 2015

@GeertJohan I'll definitely do it tomorrow. I'll need to read some other cases in the code to make sure everything is working.

@khaf khaf merged commit 1f7b015 into aerospike:master Jul 9, 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

Successfully merging this pull request may close these issues.

None yet

2 participants