mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-08-06 01:35:12 +08:00
Cellular transport return socket closed when remote disconnected (#922)
* Update the return value if socket is closed by remote
This commit is contained in:
@ -349,6 +349,10 @@ static BaseType_t prvNetworkRecvCellular( const cellularSocketWrapper_t * pCellu
|
||||
{
|
||||
retRecvLength = ( BaseType_t ) recvLength;
|
||||
}
|
||||
else if( socketStatus == CELLULAR_SOCKET_CLOSED )
|
||||
{
|
||||
retRecvLength = TCP_SOCKETS_ERRNO_ECLOSED;
|
||||
}
|
||||
else
|
||||
{
|
||||
LogError( ( "prvNetworkRecv failed %d", socketStatus ) );
|
||||
|
Reference in New Issue
Block a user