Skip to content

Commit 160ffe2

Browse files
author
Emil Popov
committed
Fixes the TCP zero-copy functionality... looks like this somehow just got overlooked.
1 parent 5e55153 commit 160ffe2

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

source/FreeRTOS_Sockets.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4594,16 +4594,10 @@ void vSocketWakeUpUser( FreeRTOS_Socket_t * pxSocket )
45944594
size_t uxDataLength,
45954595
BaseType_t xFlags )
45964596
{
4597-
BaseType_t xByteCount = -pdFREERTOS_ERRNO_EINVAL;
4597+
BaseType_t xByteCount;
45984598
FreeRTOS_Socket_t * pxSocket = ( FreeRTOS_Socket_t * ) xSocket;
45994599

4600-
if( pvBuffer != NULL )
4601-
{
4602-
/* Check if this is a valid TCP socket, affirm that it is not closed or closing,
4603-
* affirm that there was not malloc-problem, test if uxDataLength is non-zero,
4604-
* and if the connection is not in a confirmed FIN state. */
4605-
xByteCount = ( BaseType_t ) prvTCPSendCheck( pxSocket, uxDataLength );
4606-
}
4600+
xByteCount = ( BaseType_t ) prvTCPSendCheck( pxSocket, uxDataLength );
46074601

46084602
if( xByteCount > 0 )
46094603
{

0 commit comments

Comments
 (0)