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

FreeRTOS+TCP zero copy - not possible to be used. #225

Open
bjv-capra opened this issue Apr 8, 2021 · 1 comment
Open

FreeRTOS+TCP zero copy - not possible to be used. #225

bjv-capra opened this issue Apr 8, 2021 · 1 comment

Comments

@bjv-capra
Copy link
Contributor

bjv-capra commented Apr 8, 2021

Hi,

I've been looking at the current implementation of the transport profile and it does not allow one to use the zero-copy feature from FreeRTOS+TCP.

These are examples from them
https://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/Networking_Tutorial_Zero_Copy_Receive.html
https://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/Networking_Tutorial_Zero_Copy_Send.html

You can see here and here that the flags are set to 0 on both cases.

I'd assume this requires some work on this implementation to provide the pre-allocated buffer.

Furthermore, as this implementation uses select, wouldn't it be better to simply enforce another flag FREERTOS_MSG_DONTWAIT, which does not iterate over recvfrom or sendto. I don't know if this would provide a significant improvement

@pablogs9
Copy link
Member

pablogs9 commented Apr 8, 2021

Hello, this support is not planned in our mid-term roadmap. Furthermore, this transport for FreeRTOS+TCP is a contributed feature (#161).

If you want to provide any improvement, upgrade, or a new feature, PR are welcome.

CC: @FranFin

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

2 participants