mirror of
https://github.com/schoebel/mars
synced 2024-12-11 01:09:19 +00:00
net: remember detected snd state transitions
This commit is contained in:
parent
1fe3ff7c89
commit
4406b649af
@ -489,6 +489,10 @@ int _mars_send_raw(struct mars_socket *msock, const void *buf, int len)
|
||||
MARS_WRN("interrupting, sent = %d\n", sent);
|
||||
status = -EIDRM;
|
||||
break;
|
||||
} else if (!msock->s_connected &&
|
||||
!_socket_not_connected(sock)) {
|
||||
/* Remember the detected state transition ASAP */
|
||||
msock->s_connected = true;
|
||||
}
|
||||
|
||||
#ifdef USE_SENDPAGE // FIXME: does not work, leads to data corruption (probably due to races with asynchrous sending)
|
||||
|
Loading…
Reference in New Issue
Block a user