[TIPC]: Skip connection flow control in connectionless sockets
[deliverable/linux.git] / net / tipc / socket.c
index ca6f52f392a9d32b24eed723521b45949db521bb..91aa2dc51771988c891c92a5859c68d495abb9ff 100644 (file)
@@ -919,7 +919,8 @@ restart:
        /* Consume received message (optional) */
 
        if (likely(!(flags & MSG_PEEK))) {
-               if (unlikely(++tsock->p->conn_unacked >= TIPC_FLOW_CONTROL_WIN))
+               if ((sock->state != SS_READY) &&
+                   (++tsock->p->conn_unacked >= TIPC_FLOW_CONTROL_WIN))
                        tipc_acknowledge(tsock->p->ref, tsock->p->conn_unacked);
                advance_queue(tsock);
        }
This page took 0.027669 seconds and 5 git commands to generate.