net: remember detected rcv state transitions

This commit is contained in:
Thomas Schoebel-Theuer 2022-08-16 07:12:15 +02:00 committed by Thomas Schoebel-Theuer
parent bd0445ffce
commit 1fe3ff7c89

View File

@ -728,6 +728,9 @@ int mars_recv_raw(struct mars_socket *msock, void *buf, int minlen, int maxlen)
status = -EIDRM; status = -EIDRM;
goto err; goto err;
} }
} else if (!_socket_not_connected(sock)) {
/* Remember the detected state transition ASAP */
msock->s_connected = true;
} }
if (minlen < maxlen) { if (minlen < maxlen) {