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

agent produces two times more data than it is set in zeroextenderlength #21

Open
AlexeyKasatkin opened this issue May 11, 2017 · 0 comments

Comments

@AlexeyKasatkin
Copy link
Collaborator

zeroextenderlength argument description states that "Length of zero bytes extender array that will be added to the agent's payload in case its size is less than MTU value. Is used to reveal problems with network packets fragmentation."
It is really transmitted as a text string (serialized JSON) that looks as follows:
"[0 0 0 0 0 0 0 ...]". So that each zero byte is converted into "0" and space (x20). This results in two times more extra data added into the real packet.
So, let's change production of extra payload in order to keep its byte length close to zeroextenderlength value.

@AlexeyKasatkin AlexeyKasatkin changed the title agent produces two time more data than it is set in zeroextenderlength agent produces two times more data than it is set in zeroextenderlength Jun 22, 2017
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

No branches or pull requests

1 participant