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

sys/net/nanocoap: allow for zero-copy payload response #17559

Closed
wants to merge 17 commits into from

Conversation

benpicco
Copy link
Contributor

Contribution description

We don't want to copy the payload into a separate buffer together with the CoAP header when sending.
Instead make use of sock_udp_sendv() and use two packet snips, one for the header and one for the payload.

Testing procedure

examples/nanocoap_server still works, but now the response to "/riot/board" is no longer copied into the reply buffer, but just referenced.

Issues/PRs references

depends on and inludes
#17544
#17485

@benpicco benpicco added State: demonstrator State: This PR (loosely) demonstrates a concept and is not necessarily meant to be merged. State: waiting for other PR State: The PR requires another PR to be merged first labels Jan 24, 2022
@github-actions github-actions bot added the Area: CoAP Area: Constrained Application Protocol implementations label Jan 24, 2022
@github-actions github-actions bot added Area: examples Area: Example Applications Area: network Area: Networking Area: pkg Area: External package ports Area: sys Area: System Area: tests Area: tests and testing framework labels Jan 24, 2022
@benpicco
Copy link
Contributor Author

superseded by #17958

@benpicco benpicco closed this May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: CoAP Area: Constrained Application Protocol implementations Area: examples Area: Example Applications Area: network Area: Networking Area: pkg Area: External package ports Area: sys Area: System Area: tests Area: tests and testing framework State: demonstrator State: This PR (loosely) demonstrates a concept and is not necessarily meant to be merged. State: waiting for other PR State: The PR requires another PR to be merged first
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant