FreeRTOS / FreeRTOS-Plus-TCP

FreeRTOS-Plus-TCP library repository. +TCP files only. Submoduled into https://github.com/FreeRTOS/FreeRTOS and various other repos.
MIT License
152 stars 163 forks source link

Update FreeRTOS_get_tx_head to create TX stream if not created already #1023

Closed tony-josi-aws closed 1 year ago

tony-josi-aws commented 1 year ago

Description

This PR updates the FreeRTOS_get_tx_head() to create the TCP transmit stream if it wasn't created for the passed socket already. If a previous attempt to create the stream failed then pxSocket->u.xTCP.bits.bMallocError should be pdTRUE, in that case another attempt won't be made.

Test Steps

Tested with hardware demo (with TCP zero copy).

Checklist:

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

tony-josi-aws commented 1 year ago

\bot run formatting