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

udp.read(buffer, sizeof(buffer)) returns more data than in the currently parsed packet #80

Open
cike87 opened this issue Oct 21, 2017 · 0 comments

Comments

@cike87
Copy link

cike87 commented Oct 21, 2017

How to reproduce:

  • Send 2 udp packets to the feather (e.g. each with a size of 770 bytes)
  • Let the feather sleep until both packets are sent
  • Parse the udp packet and note that the size of the first packet is return correctly (770)
  • Read the udp packet into a buffer using the read function that has a size of the maximum unfragmented possible udp packet size (1460)
  • read function returns data (and read Bytes) of the second packet too (1460, should be 770)

There should be a limitation of bytes returned to a maximum of the current udp packet size.

@cike87 cike87 changed the title udp.read(buffer, sizeof(buffer)) returns more data than in the current parsed packet udp.read(buffer, sizeof(buffer)) returns more data than in the currently parsed packet Oct 21, 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