Skip to content

Commit 4033c21

Browse files
committed
GEMALTO CINTERION fix RECV urc while reading cornercase
1 parent 63775e3 commit 4033c21

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

connectivity/drivers/cellular/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,8 @@ nsapi_size_or_error_t GEMALTO_CINTERION_CellularStack::socket_recvfrom_impl(Cell
598598
if (len == 0) {
599599
tr_debug("Socket %d no data", socket->id);
600600
_at.resp_stop();
601+
_at.process_oob();
602+
socket->pending_bytes = 0;
601603
RESTORE_URCs_AND_RETURN(NSAPI_ERROR_WOULD_BLOCK);
602604
}
603605
if (len == -1) {

0 commit comments

Comments
 (0)