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:
[x] I have tested my changes. No regression in existing tests.
[x] I have modified and/or added unit-tests to cover the code changes in this Pull Request.
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.
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 thenpxSocket->u.xTCP.bits.bMallocError
should bepdTRUE
, 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.