Cellular transport return socket closed when remote disconnected (#922)

* Update the return value if socket is closed by remote
pull/846/head
chinglee-iot 2 years ago committed by GitHub
parent 2f3e5235aa
commit c040a8d7e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 ) );

Loading…
Cancel
Save