Skip to content

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

Closed
benpicco wants to merge 17 commits intoRIOT-OS:masterfrom
benpicco:nanocoap-zero_copy_response
Closed

sys/net/nanocoap: allow for zero-copy payload response#17559
benpicco wants to merge 17 commits intoRIOT-OS:masterfrom
benpicco:nanocoap-zero_copy_response

Conversation

@benpicco
Copy link
Copy Markdown
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
Copy Markdown
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