Skip to content

Commit d6d2ddb

Browse files
Make freertos socket shutdown return a correct error (#227)
* Error code corrected. * Remove not needed files * typo fixed * revert back a change
1 parent e88ecd3 commit d6d2ddb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

FreeRTOS_Sockets.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3616,9 +3616,8 @@ void vSocketWakeUpUser( FreeRTOS_Socket_t * pxSocket )
36163616
}
36173617
else if( pxSocket->u.xTCP.ucTCPState != ( uint8_t ) eESTABLISHED )
36183618
{
3619-
/*_RB_ Is this comment correct? The socket is not of a type that
3620-
* supports the listen() operation. */
3621-
xResult = -pdFREERTOS_ERRNO_EOPNOTSUPP;
3619+
/* The socket is not connected. */
3620+
xResult = -pdFREERTOS_ERRNO_ENOTCONN;
36223621
}
36233622
else
36243623
{

0 commit comments

Comments
 (0)