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

TCP port does not guarantee that all data is written #7

Open
konnorandrews opened this issue Jan 4, 2018 · 0 comments
Open

TCP port does not guarantee that all data is written #7

konnorandrews opened this issue Jan 4, 2018 · 0 comments

Comments

@konnorandrews
Copy link
Member

konnorandrews commented Jan 4, 2018

Bug report

The TCP port can lose data.

Context

Utils/cpp/Comm::TCP::Port

Expected result

A call to push(buffer, length) is expected to completely send all the data in the buffer to the length provided.

Current result

Calls can result in only a partial amount of data being sent.

Possible Fix

Use the return sizes from write(...) to continue to send data.

@konnorandrews konnorandrews changed the title TCP port does not guarantee that all data is read/written TCP port does not guarantee that all data is written Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant