提交 0eca8fee 编写于 作者: V Vlad Yasevich

[SCTP]: Do not increase rwnd when reading partial notification.

When a user reads a partial notification message, do not
update rwnd since notifications must not be counted towards
receive window.
Tested-by: NOliver Roll <mail@oliroll.de>
Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
上级 60c778b2
......@@ -1911,7 +1911,8 @@ SCTP_STATIC int sctp_recvmsg(struct kiocb *iocb, struct sock *sk,
* rwnd by that amount. If all the data in the skb is read,
* rwnd is updated when the event is freed.
*/
sctp_assoc_rwnd_increase(event->asoc, copied);
if (!sctp_ulpevent_is_notification(event))
sctp_assoc_rwnd_increase(event->asoc, copied);
goto out;
} else if ((event->msg_flags & MSG_NOTIFICATION) ||
(event->msg_flags & MSG_EOR))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册